[IMPROVE] Update system messages' behavior in rooms (#22018)
* Add alert to system messages and displays them in the sidebar (last message) * Update lastMessage on room setting's update and message deletions * Add admin settings check before room alert and last message update * Update normalizeSidebarMessage.js * Update imports order * Use MessageTypes object and add support to multiple languages * Use system setting value to define last visible message in room * Update condition to hide system messages * Add check to hiddenSysMes array length (fix tests) * Add check to 'u' field in message extraData * Fix tests (rearrange order) * Add option to hide message_pinned system message type and fix tests * Add translations * Fix groups tests Co-authored-by: pierre-lehnen-rc <55164754+pierre-lehnen-rc@users.noreply.github.com> Co-authored-by: Diego Sampaio <chinello@gmail.com>pull/22232/head^2
parent
7fe049e2d0
commit
3afe072cdf
@ -1,11 +0,0 @@ |
||||
import { Meteor } from 'meteor/meteor'; |
||||
|
||||
import { MessageTypes } from '../../ui-utils'; |
||||
|
||||
Meteor.startup(function() { |
||||
MessageTypes.registerType({ |
||||
id: 'message_pinned', |
||||
system: true, |
||||
message: 'Pinned_a_message', |
||||
}); |
||||
}); |
Loading…
Reference in new issue