Skip to content
Snippets Groups Projects
Verified Commit 5b2498c6 authored by Jean-Baptiste Pasquier's avatar Jean-Baptiste Pasquier
Browse files

bugfix: remove toString

parent d60be056
No related branches found
No related tags found
No related merge requests found
Pipeline #4675 passed
...@@ -63,7 +63,7 @@ export const SibChat = { ...@@ -63,7 +63,7 @@ export const SibChat = {
if(typeof converse_sib !== 'undefined') { if(typeof converse_sib !== 'undefined') {
await converse_sib.loaded_deferred; await converse_sib.loaded_deferred;
if (await this.resource.jabberRoom) { if (await this.resource.jabberRoom) {
this.jid = (await this.resource['foaf:jabberID']).toString(); this.jid = (await this.resource['foaf:jabberID']);
} else { } else {
await store.initGraph(this.resource['@id'], jabberIDContext); await store.initGraph(this.resource['@id'], jabberIDContext);
this.jid = await (store.get(this.resource['@id'])['chatProfile.jabberID']); this.jid = await (store.get(this.resource['@id'])['chatProfile.jabberID']);
...@@ -180,7 +180,7 @@ export const SibChat = { ...@@ -180,7 +180,7 @@ export const SibChat = {
if(this.resource) { if(this.resource) {
if (await this.resource.jabberRoom) { if (await this.resource.jabberRoom) {
this.jid = (await this.resource['foaf:jabberID']).toString(); this.jid = (await this.resource['foaf:jabberID']);
} else { } else {
await store.initGraph(this.resource['@id'], jabberIDContext); await store.initGraph(this.resource['@id'], jabberIDContext);
this.jid = (await (store.get(this.resource['@id'])['chatProfile.jabberID'])); this.jid = (await (store.get(this.resource['@id'])['chatProfile.jabberID']));
...@@ -238,4 +238,4 @@ export const SibChat = { ...@@ -238,4 +238,4 @@ export const SibChat = {
} }
}; };
Sib.register(SibChat); Sib.register(SibChat);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment