diff --git a/src/mod_mam.erl b/src/mod_mam.erl index 317fddfc5..12b80c45c 100644 --- a/src/mod_mam.erl +++ b/src/mod_mam.erl @@ -812,9 +812,10 @@ select(_LServer, JidRequestor, JidArchive, Start, End, _With, RSM, _ -> {Msgs, true, L} end; -select(LServer, From, To, Start, End, With, RSM, MsgType) -> +select(LServer, JidRequestor, JidArchive, Start, End, With, RSM, MsgType) -> Mod = gen_mod:db_mod(LServer, ?MODULE), - Mod:select(LServer, From, To, Start, End, With, RSM, MsgType). + Mod:select(LServer, JidRequestor, JidArchive, Start, End, With, RSM, + MsgType). msg_to_el(#archive_msg{timestamp = TS, packet = Pkt1, nick = Nick, peer = Peer}, MsgType, JidRequestor, #jid{lserver = LServer} = JidArchive) ->