Skip to content
Snippets Groups Projects
Commit 9e9360f6 authored by ubermanu's avatar ubermanu
Browse files

bugfix: send the marker for the real latest message

parent 2866ac6f
No related branches found
No related tags found
2 merge requests!134Fix latest displayed marker,!133Send the marker for the real latest message
......@@ -84,7 +84,7 @@ converse.plugins.add('converse-rai', {
sendMarkerForLastMessage(type = 'displayed', force = false) {
const msgs = Array.from(this.messages.models);
msgs.reverse();
const msg = msgs.find(m => m.get('sender') === 'them' && (force || m.get('is_markable')));
const msg = msgs.find(m => force || m.get('is_markable'));
msg && this.sendMarkerForMessage(msg, type, force);
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment