25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-24 16:23:40 +01:00

Cosmetic change: Make variable names consistent

Use the same variable names in both mod_mam:select/8 clauses to avoid
confusion.
This commit is contained in:
Holger Wei 2016-05-03 19:12:57 +02:00 committed by Holger Weiss
parent 575ef9c619
commit 6cb60aaff5

View File

@ -812,9 +812,10 @@ select(_LServer, JidRequestor, JidArchive, Start, End, _With, RSM,
_ -> _ ->
{Msgs, true, L} {Msgs, true, L}
end; 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 = 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}, msg_to_el(#archive_msg{timestamp = TS, packet = Pkt1, nick = Nick, peer = Peer},
MsgType, JidRequestor, #jid{lserver = LServer} = JidArchive) -> MsgType, JidRequestor, #jid{lserver = LServer} = JidArchive) ->