25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-22 16:20:52 +01:00

Don't set termination reason into presence-unavailable status

Fixes https://github.com/processone/xmpp/issues/35
This commit is contained in:
Evgeniy Khramtsov 2018-09-01 17:39:39 +03:00
parent 8c8c480477
commit b416527e4f

View File

@ -272,7 +272,6 @@ process_terminated(#{sid := SID, socket := Socket,
State1 = case maps:is_key(pres_last, State) of
true ->
Pres = #presence{type = unavailable,
status = xmpp:mk_text(Status),
from = JID,
to = jid:remove_resource(JID)},
ejabberd_sm:close_session_unset_presence(SID, U, S, R,