...
 
Commits (2)
......@@ -77,9 +77,9 @@ export class ChatWindow extends SIBBase {
window.converse_sib = new ConversePlugin();
converse.plugins.add('sib-chat', converse_sib);
const user = await this.getUser()
const jabberID = await store
.get(sib.oidc.user.profile.website)
.get(user.profile.website)
.then(resource => resource.chatProfile['foaf:jabberID']);
await converse.initialize({
......@@ -91,8 +91,8 @@ export class ChatWindow extends SIBBase {
bosh_service_url: this.dataset.boshServiceUrl,
jid: jabberID,
i18n: 'en',
password: sib.oidc.user.access_token,
nickname: sib.oidc.user.profile.nickname,
password: user.access_token,
nickname: user.profile.nickname,
locales_url: this.dataset.localesUrl,
whitelisted_plugins: ['sib-chat'],
view_mode: 'embedded',
......