Fixes #1495. Mentions should always include a URI attribute

This commit is contained in:
JC Brand 2019-06-19 09:35:39 +02:00
parent 7455ce1b07
commit 303a8b63af
2 changed files with 4 additions and 1 deletions

View File

@ -35,6 +35,7 @@
- #1330: Missing room name in MUC invitation popup
- #1445: Participants list uses big font in embedded mode
- #1465: When highlighting a roster contact, they're incorrectly shown as online
- #1495: Mentions should always include a URI attribute
- #1502: Fatal error when using prebind
- #1532: Converse reloads on enter pressed in the filter box
- #1538: Allow adding self as contact

View File

@ -534,7 +534,9 @@ converse.plugins.add('converse-muc', {
'type': 'mention'
};
if (occupant.get('jid')) {
obj.uri = `xmpp:${occupant.get('jid')}`
obj.uri = `xmpp:${occupant.get('jid')}`;
} else {
obj.uri = `xmpp:${this.get('jid')}/${occupant.get('nick')}`;
}
return obj;
},