fix(conference): Change display name when ChatRoom is not created yet

This commit is contained in:
hristoterezov 2017-04-18 10:35:14 -05:00
parent f1cbafb097
commit bdd133309d
1 changed files with 4 additions and 3 deletions

View File

@ -2048,8 +2048,9 @@ export default {
}
APP.settings.setDisplayName(formattedNickname);
room.setDisplayName(formattedNickname);
APP.UI.changeDisplayName(this.getMyUserId(),
formattedNickname);
if (room) {
room.setDisplayName(formattedNickname);
APP.UI.changeDisplayName(this.getMyUserId(), formattedNickname);
}
}
};