Commit 10da630d authored by Dele Olajide's avatar Dele Olajide Committed by GitHub

fix #1937 - Editing a message removes the mentions highlight (#1938)

* Fixes #1937 Editing a message removes the mentions highlight
parent bb9e394e
......@@ -26,6 +26,7 @@ Soon we'll deprecate the latter, so prepare now.
- Start using [lit-html](https://lit-html.polymer-project.org/) instead of lodash for templating.
- [muc_fetch_members](https://conversejs.org/docs/html/configuration.html#muc-fetch-members) now also accepts an array of affiliations to fetch.
- Remove the configuration setting `muc_show_join_leave_status`. The optional status message is no longer shown at all.
- #1937: Editing a message removes the mentions highlight
## 6.0.0 (2020-01-09)
......
......@@ -1045,7 +1045,7 @@ converse.plugins.add('converse-chatview', {
}
}
if (message) {
this.insertIntoTextArea(message.get('message'), true, true);
this.insertIntoTextArea(u.prefixMentions(message), true, true);
message.save('correcting', true);
} else {
this.insertIntoTextArea('', true, false);
......@@ -1068,7 +1068,7 @@ converse.plugins.add('converse-chatview', {
}
message = message || this.getOwnMessages().reverse().find(m => m.get('editable'));
if (message) {
this.insertIntoTextArea(message.get('message'), true, true);
this.insertIntoTextArea(u.prefixMentions(message), true, true);
message.save('correcting', true);
}
},
......
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