# HG changeset patch # User Kim Alvefur # Date 1499222288 -7200 # Node ID 66e32c34250b7406a182ca54dbf3408fcb260e1e # Parent 746d7334793740c5de2a4ff3c0990b1d2370584d mod_mam: Request a total count if no items are requested diff -r 746d73347937 -r 66e32c34250b plugins/mod_mam/mod_mam.lua --- a/plugins/mod_mam/mod_mam.lua Sat Jul 01 19:53:27 2017 +0200 +++ b/plugins/mod_mam/mod_mam.lua Wed Jul 05 04:38:08 2017 +0200 @@ -141,7 +141,7 @@ limit = qmax + 1; before = before; after = after; reverse = reverse; - total = use_total; + total = use_total or qmax == 0; }); if not data then