ソースを参照

ref(chat): remove unused method

master
Leonard Kim 6年前
コミット
cb8282dfe5
1個のファイルの変更0行の追加31行の削除
  1. 0
    31
      react/features/chat/components/web/Chat.js

+ 0
- 31
react/features/chat/components/web/Chat.js ファイルの表示

@@ -87,37 +87,6 @@ class Chat extends AbstractChat<Props> {
87 87
         );
88 88
     }
89 89
 
90
-    /**
91
-     * Iterates over all the messages and creates nested arrays which hold
92
-     * consecutive messages sent be the same participant.
93
-     *
94
-     * @private
95
-     * @returns {Array<Array<Object>>}
96
-     */
97
-    _getMessagesGroupedBySender() {
98
-        const messagesCount = this.props._messages.length;
99
-        const groups = [];
100
-        let currentGrouping = [];
101
-        let currentGroupParticipantId;
102
-
103
-        for (let i = 0; i < messagesCount; i++) {
104
-            const message = this.props._messages[i];
105
-
106
-            if (message.id === currentGroupParticipantId) {
107
-                currentGrouping.push(message);
108
-            } else {
109
-                groups.push(currentGrouping);
110
-
111
-                currentGrouping = [ message ];
112
-                currentGroupParticipantId = message.id;
113
-            }
114
-        }
115
-
116
-        groups.push(currentGrouping);
117
-
118
-        return groups;
119
-    }
120
-
121 90
     /**
122 91
      * Returns a React Element for showing chat messages and a form to send new
123 92
      * chat messages.

読み込み中…
キャンセル
保存