Przeglądaj źródła

fix: remove locally generated avatar ID

j8
Bettenbuk Zoltan 6 lat temu
rodzic
commit
88e4850c4d
1 zmienionych plików z 2 dodań i 8 usunięć
  1. 2
    8
      react/features/base/participants/reducer.js

+ 2
- 8
react/features/base/participants/reducer.js Wyświetl plik

@@ -1,7 +1,5 @@
1 1
 // @flow
2 2
 
3
-import { randomHexString } from 'js-utils/random';
4
-
5 3
 import { ReducerRegistry, set } from '../redux';
6 4
 
7 5
 import {
@@ -183,6 +181,7 @@ function _participant(state: Object = {}, action) {
183 181
  */
184 182
 function _participantJoined({ participant }) {
185 183
     const {
184
+        avatarID,
186 185
         avatarURL,
187 186
         botType,
188 187
         connectionStatus,
@@ -196,14 +195,9 @@ function _participantJoined({ participant }) {
196 195
         presence,
197 196
         role
198 197
     } = participant;
199
-    let { avatarID, conference, id } = participant;
198
+    let { conference, id } = participant;
200 199
 
201 200
     if (local) {
202
-        // avatarID
203
-        //
204
-        // TODO Get the avatarID of the local participant from localStorage.
205
-        avatarID || (avatarID = randomHexString(32));
206
-
207 201
         // conference
208 202
         //
209 203
         // XXX The local participant is not identified in association with a

Ładowanie…
Anuluj
Zapisz