From 5b2498c65ff97a579352d35763ec7538a3782493 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Pasquier Date: Fri, 15 Nov 2019 15:32:55 +0100 Subject: [PATCH] bugfix: remove toString --- sib-chat.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sib-chat.js b/sib-chat.js index fb1351a..e4ba1bc 100644 --- a/sib-chat.js +++ b/sib-chat.js @@ -63,7 +63,7 @@ export const SibChat = { if(typeof converse_sib !== 'undefined') { await converse_sib.loaded_deferred; if (await this.resource.jabberRoom) { - this.jid = (await this.resource['foaf:jabberID']).toString(); + this.jid = (await this.resource['foaf:jabberID']); } else { await store.initGraph(this.resource['@id'], jabberIDContext); this.jid = await (store.get(this.resource['@id'])['chatProfile.jabberID']); @@ -180,7 +180,7 @@ export const SibChat = { if(this.resource) { if (await this.resource.jabberRoom) { - this.jid = (await this.resource['foaf:jabberID']).toString(); + this.jid = (await this.resource['foaf:jabberID']); } else { await store.initGraph(this.resource['@id'], jabberIDContext); this.jid = (await (store.get(this.resource['@id'])['chatProfile.jabberID'])); @@ -238,4 +238,4 @@ export const SibChat = { } }; -Sib.register(SibChat); \ No newline at end of file +Sib.register(SibChat); -- 2.22.2