Commit da254da4 authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier

Merge branch 'fix/depth-0-jabberID' into 'master'

bugfix: get chatProfile.jabberID with depth=0

See merge request !11
parents 266597ed ddb30fdd
Pipeline #4862 passed with stage
in 28 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
.get(user);
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