mirror of
https://github.com/processone/ejabberd.git
synced 2024-09-21 14:06:57 +02:00
Omit redundant check for overcrowded MUC room
The send_update_presence/4 function already checked whether the room is overcrowded before calling send_update_presence1/4, so there's no need to have send_new_presence/4 perform the same check.
This commit is contained in:
parent
8098f7d9a8
commit
bf49c292f8
@ -2117,7 +2117,7 @@ send_update_presence1(JID, Reason, StateData, OldStateData) ->
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
lists:foreach(fun (J) ->
|
lists:foreach(fun (J) ->
|
||||||
send_new_presence(J, Reason, StateData, OldStateData)
|
send_new_presence1(J, Reason, StateData, OldStateData)
|
||||||
end,
|
end,
|
||||||
LJIDs).
|
LJIDs).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user