diff options
author | Kim Alvefur <zash@zash.se> | 2017-07-05 04:38:08 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-07-05 04:38:08 +0200 |
commit | 0487f34a01ccb1a9736ad06cd3377d29067c689e (patch) | |
tree | 3f049f4ba678bc7b61829d58bdb77572af995c45 | |
parent | 0d592ed7693aa53df3576e6a21bd2d6da91f12fb (diff) | |
download | prosody-0487f34a01ccb1a9736ad06cd3377d29067c689e.tar.gz prosody-0487f34a01ccb1a9736ad06cd3377d29067c689e.zip |
mod_mam: Request a total count if no items are requested
-rw-r--r-- | plugins/mod_mam/mod_mam.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua index b40b8a9a..1dcce4e4 100644 --- a/plugins/mod_mam/mod_mam.lua +++ b/plugins/mod_mam/mod_mam.lua @@ -141,7 +141,7 @@ module:hook("iq-set/self/"..xmlns_mam..":query", function(event) limit = qmax + 1; before = before; after = after; reverse = reverse; - total = use_total; + total = use_total or qmax == 0; }); if not data then |