# HG changeset patch # User Kim Alvefur # Date 1510962420 -3600 # Node ID 15a9d508c5f7025465c27cafc3393902d6bc6ba0 # Parent d65868fed77a8910783a9b3a84c57544efe7d0b6 mod_mam_muc: Pass along the size of the matching set, if returned from storage driver diff -r d65868fed77a -r 15a9d508c5f7 mod_mam_muc/mod_mam_muc.lua --- a/mod_mam_muc/mod_mam_muc.lua Sat Nov 18 00:46:44 2017 +0100 +++ b/mod_mam_muc/mod_mam_muc.lua Sat Nov 18 00:47:00 2017 +0100 @@ -231,6 +231,7 @@ origin.send(st.error_reply(stanza, "cancel", "internal-server-error")); return true; end + local total = tonumber(err); local msg_reply_attr = { to = stanza.attr.from, from = stanza.attr.to }; @@ -288,7 +289,7 @@ origin.send(st.reply(stanza) :tag("fin", { xmlns = xmlns_mam, queryid = qid, complete = complete }) :add_child(rsm.generate { - first = first, last = last })); + first = first, last = last, count = total })); return true; end);