]> granicus.if.org Git - ejabberd/commitdiff
Fix issue with mam tests
authorPaweł Chmielowski <pchmielowski@process-one.net>
Fri, 29 Mar 2019 16:18:30 +0000 (17:18 +0100)
committerPaweł Chmielowski <pchmielowski@process-one.net>
Fri, 29 Mar 2019 16:18:30 +0000 (17:18 +0100)
Too much copy/paste...

src/mod_mam_sql.erl

index 72a1c3a9a2609c13d69ce0b3130ed35cda67dee3..52e46f48568f731cb194450b9b2d966aef82baa9 100644 (file)
@@ -180,7 +180,7 @@ select(LServer, JidRequestor, #jid{luser = LUser} = JidArchive,
               _ -> jid:encode(JidArchive)
           end,
     {Query, CountQuery} = make_sql_query(User, LServer, MAMQuery, RSM, none),
-    do_select_query(LServer, JidRequestor, JidArchive, RSM, chat, Query, CountQuery).
+    do_select_query(LServer, JidRequestor, JidArchive, RSM, MsgType, Query, CountQuery).
 
 -spec select_with_mucsub(binary(), jid(), jid(), mam_query:result(),
                             #rsm_set{} | undefined) ->