Comparison

plugins/mod_mam/mod_mam.lua @ 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
parent 10744:16002abe61b1
child 10746:2e31d67b9a29
comparison
equal deleted inserted replaced
10744:16002abe61b1 10745:79b29f35fac1
271 end 271 end
272 272
273 if st_type == "headline" then 273 if st_type == "headline" then
274 -- Headline messages are ephemeral by definition 274 -- Headline messages are ephemeral by definition
275 return false, "headline"; 275 return false, "headline";
276 end
277 if st_type == "error" then
278 return true, "bounce";
276 end 279 end
277 if st_type == "groupchat" and st_to_full then 280 if st_type == "groupchat" and st_to_full then
278 -- MUC messages always go to the full JID, usually archived by the MUC 281 -- MUC messages always go to the full JID, usually archived by the MUC
279 return false, "groupchat"; 282 return false, "groupchat";
280 end 283 end