Commit ddb30fdd authored by Clément's avatar Clément

bugfix: get chatProfile.jabberID with depth=0

parent 266597ed
Pipeline #4860 passed with stage
in 29 seconds
......@@ -88,9 +88,11 @@ export const ChatWindow = {
window.converse_sib = new ConversePlugin();
converse.plugins.add('sib-chat', converse_sib);
let user = await document.querySelector('sib-auth').getUser();
user = await store
const jabberID = user.chatProfile['foaf:jabberID'];
user = await store.get(user);
const jabberID =
user.chatProfile['foaf:jabberID'] ||
(await store.get(user.chatProfile['@id']))['foaf:jabberID'];
const idToken = await document.querySelector('sib-auth').getUserIdToken();
await converse.initialize({
debug: this.element.dataset.debug === 'true',
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment