Diff

plugins/mod_mam/mod_mam.lua @ 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
parent 8149:1dc6efcc420a
child 8193:bb0118e46c45
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