diff --git a/bigbluebutton-html5/imports/ui/components/chat/service.js b/bigbluebutton-html5/imports/ui/components/chat/service.js index 9ff256de42..ab0c3cc440 100755 --- a/bigbluebutton-html5/imports/ui/components/chat/service.js +++ b/bigbluebutton-html5/imports/ui/components/chat/service.js @@ -82,7 +82,7 @@ const reduceMessages = (previous, current, index, array) => { // Check if the last message is from the same user and time discrepancy // between the two messages exceeds window and then group current message // with the last one - return previous.concat(current); + if (lastPayload.from_userid === currentPayload.from_userid && (currentPayload.from_time - lastPayload.from_time) <= GROUPING_MESSAGES_WINDOW) { lastMessage.content.push(current.content.pop());