style(conference): Rename MAX_DISPLAYNAME_LENGTH
This commit is contained in:
parent
b1f129a53a
commit
a4a1579c84
|
@ -58,7 +58,7 @@ const commands = {
|
||||||
* Max length of the display names. If we receive longer display name the
|
* Max length of the display names. If we receive longer display name the
|
||||||
* additional chars are going to be cut.
|
* additional chars are going to be cut.
|
||||||
*/
|
*/
|
||||||
const MAX_DISPLAYNAME_LENGTH = 50;
|
const MAX_DISPLAY_NAME_LENGTH = 50;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Open Connection. When authentication failed it shows auth dialog.
|
* Open Connection. When authentication failed it shows auth dialog.
|
||||||
|
@ -288,7 +288,7 @@ function changeLocalEmail(email = '') {
|
||||||
*/
|
*/
|
||||||
function changeLocalDisplayName(nickname = '') {
|
function changeLocalDisplayName(nickname = '') {
|
||||||
const formattedNickname
|
const formattedNickname
|
||||||
= nickname.trim().substr(0, MAX_DISPLAYNAME_LENGTH);
|
= nickname.trim().substr(0, MAX_DISPLAY_NAME_LENGTH);
|
||||||
|
|
||||||
if (formattedNickname === APP.settings.getDisplayName()) {
|
if (formattedNickname === APP.settings.getDisplayName()) {
|
||||||
return;
|
return;
|
||||||
|
@ -1276,7 +1276,7 @@ export default {
|
||||||
|
|
||||||
room.on(ConferenceEvents.DISPLAY_NAME_CHANGED, (id, displayName) => {
|
room.on(ConferenceEvents.DISPLAY_NAME_CHANGED, (id, displayName) => {
|
||||||
const formattedDisplayName
|
const formattedDisplayName
|
||||||
= displayName.substr(0, MAX_DISPLAYNAME_LENGTH);
|
= displayName.substr(0, MAX_DISPLAY_NAME_LENGTH);
|
||||||
APP.API.notifyDisplayNameChanged(id, formattedDisplayName);
|
APP.API.notifyDisplayNameChanged(id, formattedDisplayName);
|
||||||
APP.UI.changeDisplayName(id, formattedDisplayName);
|
APP.UI.changeDisplayName(id, formattedDisplayName);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue