mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Don't send unavailable presence when leaving occupant has other nicks in the room (EJAB-305)
This commit is contained in:
parent
24c5063b99
commit
c76bbdf16f
@ -893,7 +893,10 @@ process_presence(From, Nick, {xmlelement, "presence", Attrs, _Els} = Packet,
|
||||
end,
|
||||
NewState =
|
||||
add_user_presence_un(From, NewPacket, StateData),
|
||||
send_new_presence(From, NewState),
|
||||
case ?DICT:find(Nick, StateData#state.nicks) of
|
||||
{ok, [_, _ | _]} -> ok;
|
||||
_ -> send_new_presence(From, NewState)
|
||||
end,
|
||||
Reason = case xml:get_subtag(NewPacket, "status") of
|
||||
false -> "";
|
||||
Status_el -> xml:get_tag_cdata(Status_el)
|
||||
|
Loading…
Reference in New Issue
Block a user