Other types of messages such as `error` don't necessarily have a JID tied to them.
@@ -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')));
}