Переглянути джерело

ref(xmpp.js): rename tmpJid to name what it really is

tags/v0.0.2
paweldomas 9 роки тому
джерело
коміт
ee0431eb28
1 змінених файлів з 4 додано та 4 видалено
  1. 4
    4
      modules/xmpp/xmpp.js

+ 4
- 4
modules/xmpp/xmpp.js Переглянути файл

@@ -242,12 +242,12 @@ export default class XMPP {
242 242
     }
243 243
 
244 244
     createRoom (roomName, options, settings) {
245
-        let tmpJid = Strophe.getNodeFromJid(this.connection.jid);
245
+        let mucNickname = Strophe.getNodeFromJid(this.connection.jid);
246 246
         let roomjid = roomName  + "@" + this.options.hosts.muc + "/";
247 247
 
248
-        roomjid += (options.useNicks)? options.nick || tmpJid :
249
-            (this.authenticatedUser? "-" + RandomUtil.randomHexString(6):
250
-                tmpJid.substr(0, 8));
248
+        roomjid += (options.useNicks) ? options.nick || mucNickname :
249
+            (this.authenticatedUser ? "-" + RandomUtil.randomHexString(6):
250
+                mucNickname.substr(0, 8));
251 251
         return this.connection.emuc.createRoom(roomjid, null, options,
252 252
             settings);
253 253
     }

Завантаження…
Відмінити
Зберегти