diff options
-rw-r--r-- | js/app.js | 3 | ||||
-rw-r--r-- | js/embedded.js | 3 | ||||
-rw-r--r-- | js/views/localvideoview.js | 5 |
3 files changed, 6 insertions, 5 deletions
@@ -688,6 +688,9 @@ if (this.pendingNickChange) { this.setGuestName(this.pendingNickChange); delete this.pendingNickChange; + } else if (!OCA.Talk.getCurrentUser().uid && !this._localStorageModel.get('nick') && !this._displayedGuestNameHint) { + OC.Notification.showTemporary(t('spreed', 'Set your name in the chat window so other participants can identify you better.')); + this._displayedGuestNameHint = true; } }.bind(this)); diff --git a/js/embedded.js b/js/embedded.js index edea8588f..fa8d22411 100644 --- a/js/embedded.js +++ b/js/embedded.js @@ -106,6 +106,9 @@ if (this.pendingNickChange) { this.setGuestName(this.pendingNickChange); delete this.pendingNickChange; + } else if (!OCA.Talk.getCurrentUser().uid && !this._localStorageModel.get('nick') && !this._displayedGuestNameHint) { + OC.Notification.showTemporary(t('spreed', 'Set your name in the chat window so other participants can identify you better.')); + this._displayedGuestNameHint = true; } }.bind(this)); diff --git a/js/views/localvideoview.js b/js/views/localvideoview.js index cd8309368..20e9d2adf 100644 --- a/js/views/localvideoview.js +++ b/js/views/localvideoview.js @@ -107,11 +107,6 @@ var guestName = localStorage.getItem("nick"); this.setAvatar(userId, guestName); - if (!userId && !this._displayedGuestNameHint) { - OC.Notification.showTemporary(t('spreed', 'Set your name in the chat window so other participants can identify you better.')); - this._displayedGuestNameHint = true; - } - this.getUI('avatarContainer').removeClass('hidden'); this.getUI('video').addClass('hidden'); }, |