From 069bf6dec64b446fc08dfe4231ca3a3c413a4469 Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Tue, 25 Apr 2017 17:21:24 +0300 Subject: [PATCH] Make sure only jabber:x:event tag is present in offline event --- src/mod_offline.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod_offline.erl b/src/mod_offline.erl index db2efb040..1d4a63958 100644 --- a/src/mod_offline.erl +++ b/src/mod_offline.erl @@ -539,8 +539,8 @@ check_event(#message{from = From, to = To, id = ID} = Msg) -> #xevent{id = undefined, offline = false} -> true; #xevent{id = undefined, offline = true} -> - NewMsg = Msg#message{from = To, to = From, - sub_els = [#xevent{id = ID, offline = true}]}, + NewMsg = #message{from = To, to = From, + sub_els = [#xevent{id = ID, offline = true}]}, ejabberd_router:route(NewMsg), true; _ -> -- 2.40.0