Browse Source

Only show the name hint once

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/430/head
Joas Schilling 8 years ago
parent
commit
302c2b3366
No known key found for this signature in database GPG Key ID: E166FD8976B3BAC8
  1. 4
      js/app.js

4
js/app.js

@ -47,6 +47,7 @@
_participantsView: null, _participantsView: null,
/** @property {boolean} videoWasEnabledAtLeastOnce */ /** @property {boolean} videoWasEnabledAtLeastOnce */
videoWasEnabledAtLeastOnce: false, videoWasEnabledAtLeastOnce: false,
displayedGuestNameHint: false,
audioDisabled: localStorage.getItem("audioDisabled"), audioDisabled: localStorage.getItem("audioDisabled"),
videoDisabled: localStorage.getItem("videoDisabled"), videoDisabled: localStorage.getItem("videoDisabled"),
_searchTerm: '', _searchTerm: '',
@ -620,10 +621,11 @@
avatar.avatar(OC.currentUser, 128); avatar.avatar(OC.currentUser, 128);
} else if (guestName) { } else if (guestName) {
avatar.imageplaceholder(guestName, undefined, 128); avatar.imageplaceholder(guestName, undefined, 128);
} else {
} else if (OCA.SpreedMe.app.displayedGuestNameHint === false) {
avatar.imageplaceholder('?', undefined, 128); avatar.imageplaceholder('?', undefined, 128);
avatar.css('background-color', '#b9b9b9'); avatar.css('background-color', '#b9b9b9');
OC.Notification.showTemporary(t('spreed', 'You can set your name on the top right of this page so other participants can identify you better.')); OC.Notification.showTemporary(t('spreed', 'You can set your name on the top right of this page so other participants can identify you better.'));
OCA.SpreedMe.app.displayedGuestNameHint = true;
} }
avatarContainer.removeClass('hidden'); avatarContainer.removeClass('hidden');

Loading…
Cancel
Save