24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-14 22:00:16 +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:
Holger Weiss 2016-02-08 00:46:33 +01:00
parent 8098f7d9a8
commit bf49c292f8

View File

@ -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).