Skip to content

Commit d450ab5

Browse files
committed
For a message, get VCard based on bare jid of sender
1 parent 87337ea commit d450ab5

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

dist/converse.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61840,7 +61840,7 @@ _converse_core__WEBPACK_IMPORTED_MODULE_2__["default"].plugins.add('converse-cha
6184061840
} else if (this.get('type') === 'groupchat') {
6184161841
this.vcard = this.getVCardForChatroomOccupant();
6184261842
} else {
61843-
const jid = this.get('from');
61843+
const jid = Strophe.getBareJidFromJid(this.get('from'));
6184461844
this.vcard = _converse.vcards.findWhere({
6184561845
'jid': jid
6184661846
}) || _converse.vcards.create({

src/headless/converse-chatboxes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ converse.plugins.add('converse-chatboxes', {
107107
} else if (this.get('type') === 'groupchat') {
108108
this.vcard = this.getVCardForChatroomOccupant();
109109
} else {
110-
const jid = this.get('from');
110+
const jid = Strophe.getBareJidFromJid(this.get('from'));
111111
this.vcard = _converse.vcards.findWhere({'jid': jid}) || _converse.vcards.create({'jid': jid});
112112
}
113113
},

src/headless/dist/converse-headless.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40284,7 +40284,7 @@ _converse_core__WEBPACK_IMPORTED_MODULE_2__["default"].plugins.add('converse-cha
4028440284
} else if (this.get('type') === 'groupchat') {
4028540285
this.vcard = this.getVCardForChatroomOccupant();
4028640286
} else {
40287-
const jid = this.get('from');
40287+
const jid = Strophe.getBareJidFromJid(this.get('from'));
4028840288
this.vcard = _converse.vcards.findWhere({
4028940289
'jid': jid
4029040290
}) || _converse.vcards.create({

0 commit comments

Comments
 (0)