fix: remove locally generated avatar ID

This commit is contained in:
Bettenbuk Zoltan 2019-07-04 10:51:35 +02:00 committed by Zoltan Bettenbuk
parent 87f9b1cf92
commit 88e4850c4d
1 changed files with 2 additions and 8 deletions

View File

@ -1,7 +1,5 @@
// @flow
import { randomHexString } from 'js-utils/random';
import { ReducerRegistry, set } from '../redux';
import {
@ -183,6 +181,7 @@ function _participant(state: Object = {}, action) {
*/
function _participantJoined({ participant }) {
const {
avatarID,
avatarURL,
botType,
connectionStatus,
@ -196,14 +195,9 @@ function _participantJoined({ participant }) {
presence,
role
} = participant;
let { avatarID, conference, id } = participant;
let { conference, id } = participant;
if (local) {
// avatarID
//
// TODO Get the avatarID of the local participant from localStorage.
avatarID || (avatarID = randomHexString(32));
// conference
//
// XXX The local participant is not identified in association with a