From a4a1579c84f811580e380e5fe303187a16e82a6e Mon Sep 17 00:00:00 2001 From: hristoterezov Date: Wed, 9 Nov 2016 10:22:43 -0600 Subject: [PATCH] style(conference): Rename MAX_DISPLAYNAME_LENGTH --- conference.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/conference.js b/conference.js index 5a54b1fef..366b7315b 100644 --- a/conference.js +++ b/conference.js @@ -58,7 +58,7 @@ const commands = { * Max length of the display names. If we receive longer display name the * 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. @@ -288,7 +288,7 @@ function changeLocalEmail(email = '') { */ function changeLocalDisplayName(nickname = '') { const formattedNickname - = nickname.trim().substr(0, MAX_DISPLAYNAME_LENGTH); + = nickname.trim().substr(0, MAX_DISPLAY_NAME_LENGTH); if (formattedNickname === APP.settings.getDisplayName()) { return; @@ -1276,7 +1276,7 @@ export default { room.on(ConferenceEvents.DISPLAY_NAME_CHANGED, (id, displayName) => { const formattedDisplayName - = displayName.substr(0, MAX_DISPLAYNAME_LENGTH); + = displayName.substr(0, MAX_DISPLAY_NAME_LENGTH); APP.API.notifyDisplayNameChanged(id, formattedDisplayName); APP.UI.changeDisplayName(id, formattedDisplayName); });