Commit ef66f2e3 authored by JC Brand's avatar JC Brand

Make sure messages re-render when 'error' is added

parent 3cca2fdb
......@@ -144,8 +144,19 @@ converse.plugins.add('converse-message-view', {
if (this.model.changed.progress) {
return this.renderFileUploadProgresBar();
}
// TODO: We can remove this once we render messages via lit-html
const isValidChange = prop => Object.prototype.hasOwnProperty.call(this.model.changed, prop);
const props = ['moderated', 'retracted', 'correcting', 'message', 'type', 'upload', 'received', 'editable', 'first_unread'];
const props = [
'correcting',
'editable',
'error',
'message',
'moderated',
'received',
'retracted',
'type',
'upload',
];
if (props.filter(isValidChange).length) {
await this.debouncedRender();
}
......
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