Commit 8524ff3b authored by Christoph Scholz's avatar Christoph Scholz Committed by JC Brand

Fix missing checkmarks in old muc messages

parent 223deaa7
# 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.
......
......@@ -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')) {
......
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