diff --git a/conference.js b/conference.js index 22ce06cc1..dee5fc887 100644 --- a/conference.js +++ b/conference.js @@ -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); + } } };