Procházet zdrojové kódy

fix: remove locally generated avatar ID

j8
Bettenbuk Zoltan před 6 roky
rodič
revize
88e4850c4d
1 změnil soubory, kde provedl 2 přidání a 8 odebrání
  1. 2
    8
      react/features/base/participants/reducer.js

+ 2
- 8
react/features/base/participants/reducer.js Zobrazit soubor

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

Načítá se…
Zrušit
Uložit