# HG changeset patch # User Kim Alvefur # Date 1587574230 -7200 # Node ID 79b29f35fac14d7a79664071340a02430af3d4ab # Parent 16002abe61b153dea541264aff9dc19083658f5c mod_mam: Save delivery failures (thanks Ge0rG) Makes it possible to learn of delivery failure even if it came bouncing back while you were offline. diff -r 16002abe61b1 -r 79b29f35fac1 plugins/mod_mam/mod_mam.lua --- a/plugins/mod_mam/mod_mam.lua Wed Apr 22 18:48:27 2020 +0200 +++ b/plugins/mod_mam/mod_mam.lua Wed Apr 22 18:50:30 2020 +0200 @@ -274,6 +274,9 @@ -- Headline messages are ephemeral by definition return false, "headline"; end + if st_type == "error" then + return true, "bounce"; + end if st_type == "groupchat" and st_to_full then -- MUC messages always go to the full JID, usually archived by the MUC return false, "groupchat";