mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-02 21:17:12 +02:00
Avoid useless calls on simples subscriptions (#1313)
This commit is contained in:
parent
fcf672c50e
commit
800965a957
|
@ -3019,6 +3019,7 @@ subscribed_nodes_by_jid(NotifyType, SubsByDepth) ->
|
|||
true ->
|
||||
case state_can_deliver(LJID, SubOptions) of
|
||||
[] -> {JIDs, Recipients};
|
||||
[LJID] -> {JIDs, [{LJID, NodeName, [SubID]} | Recipients]};
|
||||
JIDsToDeliver ->
|
||||
lists:foldl(
|
||||
fun(JIDToDeliver, {JIDsAcc, RecipientsAcc}) ->
|
||||
|
|
Loading…
Reference in New Issue
Block a user