changeset 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
parents 554f64c8d0c0
children cf9a1c7d558d
files mod_muc_rai/mod_muc_rai.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mod_muc_rai/mod_muc_rai.lua	Thu Jul 02 12:07:08 2020 +0100
+++ b/mod_muc_rai/mod_muc_rai.lua	Thu Jul 02 12:09:24 2020 +0100
@@ -121,7 +121,7 @@
 end
 
 local function get_last_user_read_id(user_jid, room_jid)
-	return muc_markers.get_user_read_marker(user_jid, room_jid);
+	return muc_markers.get_user_read_marker(jid.bare(user_jid), room_jid);
 end
 
 local function has_new_activity(room_jid, user_jid)