aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_mam
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-04-21 19:41:43 +0200
committerKim Alvefur <zash@zash.se>2020-04-21 19:41:43 +0200
commit617ac066385fea7bc1841252c87ea786bc84eafc (patch)
tree883247ac1de7dfc4bbc8b4093f1a741072dfb39e /plugins/mod_mam
parent78668f1be3eb2e0c8301995a65fd7aa87e67aefa (diff)
downloadprosody-617ac066385fea7bc1841252c87ea786bc84eafc.tar.gz
prosody-617ac066385fea7bc1841252c87ea786bc84eafc.zip
mod_mam: Prefer not archiving if no interesting payloads are found
Diffstat (limited to 'plugins/mod_mam')
-rw-r--r--plugins/mod_mam/mod_mam.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/mod_mam/mod_mam.lua b/plugins/mod_mam/mod_mam.lua
index db0e7f8d..69282857 100644
--- a/plugins/mod_mam/mod_mam.lua
+++ b/plugins/mod_mam/mod_mam.lua
@@ -305,7 +305,9 @@ local function should_store(stanza) --> boolean, reason: string
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