mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-26 17:38:45 +01:00
Do send last items only for subscription on current plugin type
This commit is contained in:
parent
661b041302
commit
6b38d19085
@ -418,7 +418,8 @@ send_loop(State) ->
|
||||
{_, Node} = NodeRec#pubsub_node.nodeid,
|
||||
Nidx = NodeRec#pubsub_node.id,
|
||||
Options = NodeRec#pubsub_node.options,
|
||||
send_items(Host, Node, Nidx, PType, Options, SubJID, last)
|
||||
[send_items(Host, Node, Nidx, PType, Options, SubJID, last)
|
||||
|| NodeRec#pubsub_node.type == PType]
|
||||
end,
|
||||
lists:usort(Subs))
|
||||
end,
|
||||
|
Loading…
Reference in New Issue
Block a user