Skip to content
Snippets Groups Projects

Fix markers

Merged Emmanuel Vodor requested to merge new_rai_fixes into beta
1 file
+ 10
0
Compare changes
  • Side-by-side
  • Inline
@@ -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.
*
Loading