# HG changeset patch # User Kim Alvefur # Date 1498224715 -7200 # Node ID e32bf5e19acd97b3167c660524c72f4061ca0ada # Parent 391c508e0b758a524c0cc7b01624cd69c4e52aba mod_mam_muc: Only collect original JID for messages (unavailable presence seems to cause an error) diff -r 391c508e0b75 -r e32bf5e19acd mod_mam_muc/mod_mam_muc.lua --- a/mod_mam_muc/mod_mam_muc.lua Fri Jun 23 14:19:55 2017 +0200 +++ b/mod_mam_muc/mod_mam_muc.lua Fri Jun 23 15:31:55 2017 +0200 @@ -395,7 +395,7 @@ local stored_stanza = stanza; - if self:get_whois() == "anyone" then + if stanza.name == "message" and self:get_whois() == "anyone" then stored_stanza = st.clone(stanza); local actor = jid_bare(self._occupants[stanza.attr.from].jid); local affiliation = self:get_affiliation(actor) or "none";