From b2d3ebb76dd22130d237b19c31e65558663f3394 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 17 Jan 2019 01:04:39 +0100 Subject: mod_presence: Revert empty 'to' attribute of presence before presence/initial event (fixes #1296) --- plugins/mod_presence.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua index 5056a3a3..268a2f0c 100644 --- a/plugins/mod_presence.lua +++ b/plugins/mod_presence.lua @@ -63,6 +63,7 @@ function handle_normal_presence(origin, stanza) 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 -- cgit v1.2.3