diff --git a/src/solid-xmpp-chat.js b/src/solid-xmpp-chat.js index 1712a97ab005ed9dca9e070e144e1ab4fc49e887..c9c373001f86c79a234328e8bbca5b9c322ac3a5 100644 --- a/src/solid-xmpp-chat.js +++ b/src/solid-xmpp-chat.js @@ -73,6 +73,13 @@ export const SolidXMPPChat = { this.jid = await this.resource['jabberID']; } else { this.jid = await this.resource['chatProfile.jabberID']; + const user = await document.querySelector('sib-auth').getUser(); + const userProfile = await store.getData(user['@id'], this.context); + const contactsURL = await userProfile['contacts.@id']; + store.post({ + "contact": this.resource['@id'], + "@context": this.context + }, contactsURL); } await converse_sib.connected_deferred converse_sib.service.plugins.sibChat.changeChat(