...
 
Commits (2)
......@@ -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',
......