]> granicus.if.org Git - ejabberd/commitdiff
Fix typo in mod_mam:select() (#1098)
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Sat, 30 Apr 2016 18:37:18 +0000 (21:37 +0300)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Sat, 30 Apr 2016 18:37:18 +0000 (21:37 +0300)
src/mod_mam.erl

index d5ee9bf868daf46cc7063e8e2387db34aa2b9967..317fddfc5de66a9d762fe19fdd57be6cbf73ff23 100644 (file)
@@ -812,9 +812,9 @@ select(_LServer, JidRequestor, JidArchive, Start, End, _With, RSM,
        _ ->
            {Msgs, true, L}
     end;
-select(LServer, From, From, Start, End, With, RSM, MsgType) ->
+select(LServer, From, To, Start, End, With, RSM, MsgType) ->
     Mod = gen_mod:db_mod(LServer, ?MODULE),
-    Mod:select(LServer, From, From, Start, End, With, RSM, MsgType).
+    Mod:select(LServer, From, To, Start, End, With, RSM, MsgType).
 
 msg_to_el(#archive_msg{timestamp = TS, packet = Pkt1, nick = Nick, peer = Peer},
          MsgType, JidRequestor, #jid{lserver = LServer} = JidArchive) ->