Skip to content
Snippets Groups Projects
Unverified Commit b50e6c10 authored by Anton Georgiev's avatar Anton Georgiev Committed by GitHub
Browse files

Merge pull request #12162 from ramonlsouza/issue-12160

fix(chat): no grouping for system messages
parents a04ab8d9 2f981562
No related branches found
No related tags found
No related merge requests found
......@@ -117,8 +117,7 @@ const generateStateWithNewMessage = (msg, state, msgType = MESSAGE_TYPES.HISTORY
const timewindowIndex = stateMessages.chatIndexes[keyName];
const groupMessage = messageGroups[keyName + '-' + timewindowIndex];
if (!groupMessage || (groupMessage && groupMessage.sender !== stateMessages.lastSender)) {
if (!groupMessage || (groupMessage && groupMessage.sender !== stateMessages.lastSender) || msg.id.startsWith(SYSTEM_CHAT_TYPE)) {
const [tempGroupMessage, sender, newIndex] = msgBuilder(msg, stateMessages);
stateMessages.lastSender = sender;
stateMessages.chatIndexes[keyName] = newIndex;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment