Unverified Commit 589e2e26 authored by devyaniChoubey's avatar devyaniChoubey Committed by GitHub
Browse files

[IMPROVEMENT] Show toast when a message is starred/unstarred (#1616)


Co-authored-by: default avatarDiego Mello <diegolmello@gmail.com>
parent 779cacbe
......@@ -294,6 +294,7 @@ class MessageActions extends React.Component {
const { message } = this.props;
try {
await RocketChat.toggleStarMessage(message.id, message.starred);
EventEmitter.emit(LISTENER, { message: message.starred ? I18n.t('Message_unstarred') : I18n.t('Message_starred') });
} catch (e) {
log(e);
}
......
......@@ -264,6 +264,8 @@ export default {
Message_actions: 'Message actions',
Message_pinned: 'Message pinned',
Message_removed: 'Message removed',
Message_starred: 'Message starred',
Message_unstarred: 'Message unstarred',
message: 'message',
messages: 'messages',
Message: 'Message',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment