Fix missing checkmarks in old muc messages
This commit is contained in:
parent
223deaa782
commit
8524ff3b99
@ -1,5 +1,9 @@
|
||||
# Changelog
|
||||
|
||||
## 4.0.6 (unreleased)
|
||||
|
||||
- #1331 Fix missing checkmarks in old muc messages
|
||||
|
||||
## 4.0.5 (2018-11-15)
|
||||
|
||||
- Error `FATAL: TypeError: Cannot read property 'extend' of undefined` when using `embedded` view mode.
|
||||
|
7
dist/converse.js
vendored
7
dist/converse.js
vendored
@ -66943,6 +66943,13 @@ _converse_core__WEBPACK_IMPORTED_MODULE_6__["default"].plugins.add('converse-muc
|
||||
}
|
||||
|
||||
const msg = await this.createMessage(stanza, original_stanza);
|
||||
|
||||
if (!_.isNull(forwarded) && msg && msg.get('sender') === 'me') {
|
||||
msg.save({
|
||||
'received': moment().format()
|
||||
});
|
||||
}
|
||||
|
||||
this.incrementUnreadMsgCounter(msg);
|
||||
}
|
||||
|
||||
|
@ -974,6 +974,9 @@ converse.plugins.add('converse-muc', {
|
||||
u.safeSave(this, {'subject': {'author': sender, 'text': subject}});
|
||||
}
|
||||
const msg = await this.createMessage(stanza, original_stanza);
|
||||
if (!_.isNull(forwarded) && msg && msg.get('sender') === 'me') {
|
||||
msg.save({'received': moment().format()});
|
||||
}
|
||||
this.incrementUnreadMsgCounter(msg);
|
||||
}
|
||||
if (sender !== this.get('nick')) {
|
||||
|
Loading…
Reference in New Issue
Block a user