[FIX] "Following thread" and "Unfollowed Thread" is hardcoded and not translated (#1625)

This commit is contained in:
devyaniChoubey 2020-01-28 18:55:28 +05:30 committed by Diego Mello
parent 47cedc3075
commit 3a9ba9c681
1 changed files with 1 additions and 1 deletions

View File

@ -640,7 +640,7 @@ class RoomView extends React.Component {
toggleFollowThread = async(isFollowingThread) => { toggleFollowThread = async(isFollowingThread) => {
try { try {
await RocketChat.toggleFollowMessage(this.tmid, !isFollowingThread); await RocketChat.toggleFollowMessage(this.tmid, !isFollowingThread);
EventEmitter.emit(LISTENER, { message: isFollowingThread ? 'Unfollowed thread' : 'Following thread' }); EventEmitter.emit(LISTENER, { message: isFollowingThread ? I18n.t('Unfollowed_thread') : I18n.t('Following_thread') });
} catch (e) { } catch (e) {
log(e); log(e);
} }