25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-24 17:29:28 +01:00

Make sure that jid used as base in mam xml_compress is bare

This commit is contained in:
Paweł Chmielowski 2020-11-04 10:56:39 +01:00
parent d37b2f851d
commit de51ba331e

View File

@ -256,7 +256,7 @@ do_select_query(LServer, JidRequestor, #jid{luser = LUser} = JidArchive, RSM,
{Res, true}
end,
MucState = #state{config = #config{anonymous = true}},
JidArchiveS = jid:encode(JidArchive),
JidArchiveS = jid:encode(jid:remove_resource(JidArchive)),
{lists:flatmap(
fun([TS, XML, PeerBin, Kind, Nick]) ->
case make_archive_el(JidArchiveS, TS, XML, PeerBin, Kind, Nick,