瀏覽代碼

Call `setUserJID` when we get JID from `credentials_url`

JC Brand 6 年之前
父節點
當前提交
690052e1c2
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/headless/converse-core.js

+ 1 - 0
src/headless/converse-core.js

@@ -605,6 +605,7 @@ function fetchLoginCredentials (wait=0) {
             xhr.onload = () => {
             xhr.onload = () => {
                 if (xhr.status >= 200 && xhr.status < 400) {
                 if (xhr.status >= 200 && xhr.status < 400) {
                     const data = JSON.parse(xhr.responseText);
                     const data = JSON.parse(xhr.responseText);
+                    setUserJID(data.jid);
                     resolve({
                     resolve({
                         jid: data.jid,
                         jid: data.jid,
                         password: data.password
                         password: data.password