浏览代码

style(conference): Rename MAX_DISPLAYNAME_LENGTH

j8
hristoterezov 9 年前
父节点
当前提交
a4a1579c84
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3
    3
      conference.js

+ 3
- 3
conference.js 查看文件

@@ -58,7 +58,7 @@ const commands = {
58 58
  * Max length of the display names. If we receive longer display name the
59 59
  * additional chars are going to be cut.
60 60
  */
61
-const MAX_DISPLAYNAME_LENGTH = 50;
61
+const MAX_DISPLAY_NAME_LENGTH = 50;
62 62
 
63 63
 /**
64 64
  * Open Connection. When authentication failed it shows auth dialog.
@@ -288,7 +288,7 @@ function changeLocalEmail(email = '') {
288 288
  */
289 289
 function changeLocalDisplayName(nickname = '') {
290 290
     const formattedNickname
291
-        = nickname.trim().substr(0, MAX_DISPLAYNAME_LENGTH);
291
+        = nickname.trim().substr(0, MAX_DISPLAY_NAME_LENGTH);
292 292
 
293 293
     if (formattedNickname === APP.settings.getDisplayName()) {
294 294
         return;
@@ -1276,7 +1276,7 @@ export default {
1276 1276
 
1277 1277
         room.on(ConferenceEvents.DISPLAY_NAME_CHANGED, (id, displayName) => {
1278 1278
             const formattedDisplayName
1279
-                = displayName.substr(0, MAX_DISPLAYNAME_LENGTH);
1279
+                = displayName.substr(0, MAX_DISPLAY_NAME_LENGTH);
1280 1280
             APP.API.notifyDisplayNameChanged(id, formattedDisplayName);
1281 1281
             APP.UI.changeDisplayName(id, formattedDisplayName);
1282 1282
         });

正在加载...
取消
保存