25
1
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:
Christophe Romain 2016-07-08 15:18:39 +02:00
parent 661b041302
commit 6b38d19085

View File

@ -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,