# HG changeset patch # User Kim Alvefur # Date 1547683479 -3600 # Node ID f47b2ab877d0f2975d7f88b501a510b20cfce5ec # Parent 2e07d2f7159941a23084f6ead0c2aa7e86d3823c mod_presence: Revert empty 'to' attribute of presence before presence/initial event (fixes #1296) diff -r 2e07d2f71599 -r f47b2ab877d0 plugins/mod_presence.lua --- a/plugins/mod_presence.lua Thu Jan 10 13:07:22 2019 +0100 +++ b/plugins/mod_presence.lua Thu Jan 17 01:04:39 2019 +0100 @@ -63,6 +63,7 @@ core_post_stanza(origin, stanza, true); end end + stanza.attr.to = nil; if stanza.attr.type == nil and not origin.presence then -- initial presence module:fire_event("presence/initial", { origin = origin, stanza = stanza } ); origin.presence = stanza; -- FIXME repeated later