From cb8282dfe51a40761339ca0799326d0e869ecde8 Mon Sep 17 00:00:00 2001 From: Leonard Kim Date: Wed, 8 May 2019 13:37:50 -0700 Subject: [PATCH] ref(chat): remove unused method --- react/features/chat/components/web/Chat.js | 31 ---------------------- 1 file changed, 31 deletions(-) diff --git a/react/features/chat/components/web/Chat.js b/react/features/chat/components/web/Chat.js index 78cd7aef8..1a69fec6a 100644 --- a/react/features/chat/components/web/Chat.js +++ b/react/features/chat/components/web/Chat.js @@ -87,37 +87,6 @@ class Chat extends AbstractChat { ); } - /** - * Iterates over all the messages and creates nested arrays which hold - * consecutive messages sent be the same participant. - * - * @private - * @returns {Array>} - */ - _getMessagesGroupedBySender() { - const messagesCount = this.props._messages.length; - const groups = []; - let currentGrouping = []; - let currentGroupParticipantId; - - for (let i = 0; i < messagesCount; i++) { - const message = this.props._messages[i]; - - if (message.id === currentGroupParticipantId) { - currentGrouping.push(message); - } else { - groups.push(currentGrouping); - - currentGrouping = [ message ]; - currentGroupParticipantId = message.id; - } - } - - groups.push(currentGrouping); - - return groups; - } - /** * Returns a React Element for showing chat messages and a form to send new * chat messages.