Commit e0cb3c34 authored by JC Brand's avatar JC Brand

Bugfix. Don't extend chatbox attributes

when creating attributes for outgoing message.

Otherwise `id` is the same for all messages.
parent 10da92ec
......@@ -62473,7 +62473,9 @@ _converse_core__WEBPACK_IMPORTED_MODULE_2__["default"].plugins.add('converse-cha
const is_spoiler = this.get('composing_spoiler'),
origin_id = _converse.connection.getUniqueId();
return _.extend(this.toJSON(), {
return {
'jid': this.get('jid'),
'nickname': this.get('nickname'),
'msgid': origin_id,
'origin_id': origin_id,
'fullname': _converse.xmppstatus.get('fullname'),
......@@ -62484,7 +62486,7 @@ _converse_core__WEBPACK_IMPORTED_MODULE_2__["default"].plugins.add('converse-cha
'is_spoiler': is_spoiler,
'spoiler_hint': is_spoiler ? spoiler_hint : undefined,
'type': this.get('message_type')
});
};
},
/**
......@@ -498,7 +498,9 @@ converse.plugins.add('converse-chatboxes', {
const is_spoiler = this.get('composing_spoiler'),
origin_id = _converse.connection.getUniqueId();
return _.extend(this.toJSON(), {
return {
'jid': this.get('jid'),
'nickname': this.get('nickname'),
'msgid': origin_id,
'origin_id': origin_id,
'fullname': _converse.xmppstatus.get('fullname'),
......@@ -509,7 +511,7 @@ converse.plugins.add('converse-chatboxes', {
'is_spoiler': is_spoiler,
'spoiler_hint': is_spoiler ? spoiler_hint : undefined,
'type': this.get('message_type')
});
}
},
/**
......
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