Commit 6848b37a authored by Clément's avatar Clément

Merge branch 'getUser' into 'master'

update: use getUser()

See merge request !3
parents a78f8596 246c9842
Pipeline #2910 passed with stage
in 28 seconds
......@@ -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',
......
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