Browse Source

Bugfix. Read jid from settings

Now that app settings are now longer saved directly on the `_converse` object
JC Brand 3 năm trước cách đây
mục cha
commit
d4f6b040f3
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/headless/core.js

+ 1 - 1
src/headless/core.js

@@ -293,7 +293,7 @@ export const api = _converse.api = {
          *  @returns  {void}
          */
         async login (jid, password, automatic=false) {
-            jid = jid || _converse.jid;
+            jid = jid || api.settings.get('jid');
             if (!_converse.connection?.jid || (jid && !u.isSameDomain(_converse.connection.jid, jid))) {
                 await _converse.initConnection();
             }