Software /
code /
prosody-modules
Comparison
mod_muc_rai/mod_muc_rai.lua @ 4057:2ede3450abca
mod_muc_rai: Fix to use bare JID where a bare JID is needed
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 02 Jul 2020 12:09:24 +0100 |
parent | 3998:67047ed63b15 |
child | 4058:cf9a1c7d558d |
comparison
equal
deleted
inserted
replaced
4056:554f64c8d0c0 | 4057:2ede3450abca |
---|---|
119 local function update_room_activity(room_jid, last_id) | 119 local function update_room_activity(room_jid, last_id) |
120 room_activity_cache:set(room_jid, last_id); | 120 room_activity_cache:set(room_jid, last_id); |
121 end | 121 end |
122 | 122 |
123 local function get_last_user_read_id(user_jid, room_jid) | 123 local function get_last_user_read_id(user_jid, room_jid) |
124 return muc_markers.get_user_read_marker(user_jid, room_jid); | 124 return muc_markers.get_user_read_marker(jid.bare(user_jid), room_jid); |
125 end | 125 end |
126 | 126 |
127 local function has_new_activity(room_jid, user_jid) | 127 local function has_new_activity(room_jid, user_jid) |
128 local last_room_message_id = get_last_room_message_id(room_jid); | 128 local last_room_message_id = get_last_room_message_id(room_jid); |
129 local last_user_read_id = get_last_user_read_id(user_jid, room_jid); | 129 local last_user_read_id = get_last_user_read_id(user_jid, room_jid); |