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

bugfix: send displayed marker for the latest message when scrolled down

parent 08798301
No related branches found
No related tags found
2 merge requests!131Fix markers,!130Fix markers
......@@ -146,6 +146,16 @@ converse.plugins.add('converse-rai', {
},
});
/**
* Send a displayed marker once the chatroom is scrolled down.
* FIXME: This is sending two requests (for the same message)
*/
api.listen.on('chatBoxScrolledDown', data => {
if (data.chatbox.get('type') === _converse.CHATROOMS_TYPE && api.settings.get('muc_subscribe_to_rai')) {
data.chatbox.sendMarkerForLastMessage('displayed', true);
}
});
/**
* Triggers an event if a jid has activity.
*
......
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