Commit 970ba96c authored by JC Brand's avatar JC Brand

Bugfix. Only create VCards for `chat` and `groupchat` messages

Other types of messages such as `error` don't necessarily have a JID
tied to them.
parent a0f0240b
......@@ -87,7 +87,9 @@ converse.plugins.add('converse-chatboxes', {
},
initialize () {
this.setVCard();
if (['chat', 'groupchat'].includes(this.get('type'))) {
this.setVCard();
}
if (this.get('type') === 'chat') {
this.setRosterContact(Strophe.getBareJidFromJid(this.get('from')));
}
......
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