Commit b4b7fedf authored by JC Brand's avatar JC Brand

Bugfix. Add id to outgoing MUC messages

parent 5f041769
...@@ -823,7 +823,8 @@ converse.plugins.add('converse-chatview', { ...@@ -823,7 +823,8 @@ converse.plugins.add('converse-chatview', {
* @param { object } message - The message Backbone object that was added. * @param { object } message - The message Backbone object that was added.
*/ */
async onMessageAdded (message) { async onMessageAdded (message) {
if (this.get(message.get('id'))) { const id = message.get('id');
if (id && this.get(id)) {
// We already have a view for this message // We already have a view for this message
return; return;
} }
......
...@@ -448,6 +448,7 @@ converse.plugins.add('converse-muc', { ...@@ -448,6 +448,7 @@ converse.plugins.add('converse-muc', {
const origin_id = _converse.connection.getUniqueId(); const origin_id = _converse.connection.getUniqueId();
return this.addOccupantData({ return this.addOccupantData({
'id': origin_id,
'msgid': origin_id, 'msgid': origin_id,
'origin_id': origin_id, 'origin_id': origin_id,
'from': `${this.get('jid')}/${this.get('nick')}`, 'from': `${this.get('jid')}/${this.get('nick')}`,
......
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