# HG changeset patch # User Kim Alvefur # Date 1587925491 -7200 # Node ID 6b776f80b96e3b8ea70472cb5d1a0535eb860fe9 # Parent f7e8d299513fdb45a459043a72467df5f52e8592 mod_carbons: Carbon anything that has been archived by the current user This ensures rules in mod_mam apply to some extent. Messages worth archiving are probably worth sending to other clients. diff -r f7e8d299513f -r 6b776f80b96e plugins/mod_carbons.lua --- a/plugins/mod_carbons.lua Sun Apr 26 20:23:50 2020 +0200 +++ b/plugins/mod_carbons.lua Sun Apr 26 20:24:51 2020 +0200 @@ -47,6 +47,12 @@ return true, "bounce"; end + for archived in stanza:childtags("stanza-id", "urn:xmpp:sid:0") do + if archived and archived.attr.by == user_bare then + return true, "archived"; + end + end + return false, "default"; end