|
@@ -203,7 +203,8 @@ UI.showChatError = function (err, msg) {
|
203
|
203
|
* @param {string} displayName new nickname
|
204
|
204
|
*/
|
205
|
205
|
UI.changeDisplayName = function (id, displayName) {
|
206
|
|
- UI.ContactList.onDisplayNameChange(id, displayName);
|
|
206
|
+ if (UI.ContactList)
|
|
207
|
+ UI.ContactList.onDisplayNameChange(id, displayName);
|
207
|
208
|
VideoLayout.onDisplayNameChanged(id, displayName);
|
208
|
209
|
|
209
|
210
|
if (APP.conference.isLocalId(id) || id === 'localVideoContainer') {
|
|
@@ -249,7 +250,8 @@ UI.setLocalRaisedHandStatus = (raisedHandStatus) => {
|
249
|
250
|
UI.initConference = function () {
|
250
|
251
|
let id = APP.conference.getMyUserId();
|
251
|
252
|
// Add myself to the contact list.
|
252
|
|
- UI.ContactList.addContact(id, true);
|
|
253
|
+ if (UI.ContactList)
|
|
254
|
+ UI.ContactList.addContact(id, true);
|
253
|
255
|
|
254
|
256
|
// Update default button states before showing the toolbar
|
255
|
257
|
// if local role changes buttons state will be again updated.
|
|
@@ -559,7 +561,8 @@ UI.addUser = function (user) {
|
559
|
561
|
var id = user.getId();
|
560
|
562
|
var displayName = user.getDisplayName();
|
561
|
563
|
UI.hideRingOverLay();
|
562
|
|
- UI.ContactList.addContact(id);
|
|
564
|
+ if (UI.ContactList)
|
|
565
|
+ UI.ContactList.addContact(id);
|
563
|
566
|
|
564
|
567
|
messageHandler.notify(
|
565
|
568
|
displayName,'notify.somebody', 'connected', 'notify.connected'
|
|
@@ -586,7 +589,8 @@ UI.addUser = function (user) {
|
586
|
589
|
* @param {string} displayName user nickname
|
587
|
590
|
*/
|
588
|
591
|
UI.removeUser = function (id, displayName) {
|
589
|
|
- UI.ContactList.removeContact(id);
|
|
592
|
+ if (UI.ContactList)
|
|
593
|
+ UI.ContactList.removeContact(id);
|
590
|
594
|
|
591
|
595
|
messageHandler.notify(
|
592
|
596
|
displayName,'notify.somebody', 'disconnected', 'notify.disconnected'
|
|
@@ -838,7 +842,8 @@ UI.dockToolbar = function (isDock) {
|
838
|
842
|
*/
|
839
|
843
|
function changeAvatar(id, avatarUrl) {
|
840
|
844
|
VideoLayout.changeUserAvatar(id, avatarUrl);
|
841
|
|
- UI.ContactList.changeUserAvatar(id, avatarUrl);
|
|
845
|
+ if (UI.ContactList)
|
|
846
|
+ UI.ContactList.changeUserAvatar(id, avatarUrl);
|
842
|
847
|
if (APP.conference.isLocalId(id)) {
|
843
|
848
|
Profile.changeAvatar(avatarUrl);
|
844
|
849
|
}
|