Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion app/containers/message/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ export const SYSTEM_MESSAGES = [
'room_changed_privacy',
'room_changed_avatar',
'message_snippeted',
'thread-created'
'thread-created',
'room_e2e_enabled',
'room_e2e_disabled'
];

export const SYSTEM_MESSAGE_TYPES = {
Expand Down Expand Up @@ -100,6 +102,10 @@ export const getInfoMessage = ({
return I18n.t('Room_changed_avatar', { userBy: username });
} else if (type === 'message_snippeted') {
return I18n.t('Created_snippet');
} else if (type === 'room_e2e_disabled') {
return I18n.t('Encryption_disabled', { userBy: username });
} else if (type === 'room_e2e_enabled') {
return I18n.t('Encryption_enabled', { userBy: username });
}
return '';
};
Expand Down
2 changes: 2 additions & 0 deletions app/i18n/locales/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,8 @@ export default {
E2E_How_It_Works_info2: 'This is *end to end encryption* so the key to encode/decode your messages and they will not be saved on the server. For that reason *you need to store this password somewhere safe* which you can access later if you may need.',
E2E_How_It_Works_info3: 'If you proceed, it will be auto generated an E2E password.',
E2E_How_It_Works_info4: 'You can also setup a new password for your encryption key any time from any browser you have entered the existing E2E password.',
Encryption_enabled: 'This room\'s encryption has been enabled by {{userBy}}',
Encryption_disabled: 'This room\'s encryption has been disabled by {{userBy}}',
edit: 'edit',
edited: 'edited',
Edit: 'Edit',
Expand Down