...
 
Commits (1)
......@@ -143,10 +143,14 @@ export const SibChat = {
const jabberID = (await store.get(user.chatProfile['@id']))['foaf:jabberID'];
if (this.resource.jabberRoom) {
this.jid = this.resource['foaf:jabberID'];
if(this.resource) {
if (this.resource.jabberRoom) {
this.jid = this.resource['foaf:jabberID'];
} else {
this.jid = (await store.get(this.resource.chatProfile['@id']))['foaf:jabberID'];
}
} else {
this.jid = (await store.get(this.resource.chatProfile['@id']))['foaf:jabberID'];
this.jid = jabberID;
}
const idToken = await document.querySelector('sib-auth').getUserIdToken();
......