Changeset

10741:27f1fcd85ccd

mod_mam: Prefer not archiving if no interesting payloads are found
author Kim Alvefur <zash@zash.se>
date Tue, 21 Apr 2020 19:41:43 +0200
parents 10740:08efb60faf67
children 10742:70b7c8f3d32d
files plugins/mod_mam/mod_mam.lua
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_mam/mod_mam.lua	Tue Apr 21 01:29:58 2020 +0200
+++ b/plugins/mod_mam/mod_mam.lua	Tue Apr 21 19:41:43 2020 +0200
@@ -305,7 +305,9 @@
 		return true, "invite";
 	end
 
-	return true, "default";
+	 -- The IM-NG thing to do here would be to return `not st_to_full`
+	 -- One day ...
+	return false, "default";
 end
 
 -- Handle messages