Changeset

8172:66e32c34250b

mod_mam: Request a total count if no items are requested
author Kim Alvefur <zash@zash.se>
date Wed, 05 Jul 2017 04:38:08 +0200
parents 8171:746d73347937
children 8173:3ff99d49082f
files plugins/mod_mam/mod_mam.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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