Software /
code /
prosody
Changeset
10745:79b29f35fac1
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.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 22 Apr 2020 18:50:30 +0200 |
parents | 10744:16002abe61b1 |
children | 10746:2e31d67b9a29 |
files | plugins/mod_mam/mod_mam.lua |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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";