Fix missing checkmarks in old muc messages

This commit is contained in:
Christoph Scholz 2018-11-16 18:05:18 +01:00 committed by JC Brand
parent 223deaa782
commit 8524ff3b99
3 changed files with 14 additions and 0 deletions

View File

@ -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
View File

@ -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);
}

View File

@ -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')) {