aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-04-25 17:21:24 +0300
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2017-04-25 17:21:24 +0300
commit069bf6dec64b446fc08dfe4231ca3a3c413a4469 (patch)
tree2ba75f219f299553cc6dee374d2fe081cdf5a92d /src
parentrandoms: Keep compatibility with Erlang/OTP 17 (diff)
Make sure only jabber:x:event tag is present in offline event
Diffstat (limited to 'src')
-rw-r--r--src/mod_offline.erl4
1 files 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;
_ ->