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
1 changed files with 1 additions and 1 deletions

View File

@ -2117,7 +2117,7 @@ send_update_presence1(JID, Reason, StateData, OldStateData) ->
end
end,
lists:foreach(fun (J) ->
send_new_presence(J, Reason, StateData, OldStateData)
send_new_presence1(J, Reason, StateData, OldStateData)
end,
LJIDs).