Revert "Prevent Error 1006 when user has two or more occurrences of ':' (colon) in your name"
This reverts commit 0a601359bb
.
This commit is contained in:
parent
a310a59257
commit
9a2fcd27e0
@ -145,13 +145,10 @@ class SIPSession {
|
||||
sessionToken,
|
||||
} = this.user;
|
||||
|
||||
const encodedName =
|
||||
btoa && name ? btoa(name) : name;
|
||||
|
||||
const callerIdName = [
|
||||
`${userId}_${getAudioSessionNumber()}`,
|
||||
'bbbID',
|
||||
isListenOnly ? `LISTENONLY-${encodedName}` : encodedName,
|
||||
isListenOnly ? `LISTENONLY-${name}` : name,
|
||||
].join('-').replace(/"/g, "'");
|
||||
|
||||
this.user.callerIdName = callerIdName;
|
||||
|
@ -1,7 +1,6 @@
|
||||
import React from 'react';
|
||||
import { withTracker } from 'meteor/react-meteor-data';
|
||||
import VoiceUsers from '/imports/api/voice-users';
|
||||
import Users from '/imports/api/users'
|
||||
import Auth from '/imports/ui/services/auth';
|
||||
import { debounce } from 'lodash';
|
||||
import TalkingIndicator from './component';
|
||||
@ -38,16 +37,12 @@ export default withTracker(() => {
|
||||
callerName, talking, color, voiceUserId, muted, intId,
|
||||
} = usersTalking[i];
|
||||
|
||||
const user = Users.findOne({ userId: voiceUserId }, { fields: { name: 1 } });
|
||||
|
||||
const _name = user ? user.name : 'USER';
|
||||
|
||||
talkers[`${intId}`] = {
|
||||
color,
|
||||
talking,
|
||||
voiceUserId,
|
||||
muted,
|
||||
callerName: _name,
|
||||
callerName,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user