diff options
author | Christophe Romain <christophe.romain@process-one.net> | 2017-03-30 14:26:30 +0200 |
---|---|---|
committer | Christophe Romain <christophe.romain@process-one.net> | 2017-03-30 14:26:30 +0200 |
commit | c93bf732dbfa6ed78140eadc1df4aa78bd76ebb7 (patch) | |
tree | 1d277a2fcd432173494b9b3c3d6de7535f39b227 /src/node_pep.erl | |
parent | Deprecate jlib.erl in favor of aux.erl (diff) |
Refactor pubsub's get_last_items
Diffstat (limited to 'src/node_pep.erl')
-rw-r--r-- | src/node_pep.erl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/node_pep.erl b/src/node_pep.erl index c79df4e15..6dd7a68c4 100644 --- a/src/node_pep.erl +++ b/src/node_pep.erl @@ -43,6 +43,7 @@ get_subscriptions/2, set_subscriptions/4, get_pending_nodes/2, get_states/1, get_state/2, set_state/1, get_items/7, get_items/3, get_item/7, + get_last_items/3, get_item/2, set_item/1, get_item_name/3, node_to_path/1, path_to_node/1, depends/3]). @@ -228,6 +229,9 @@ get_items(Nidx, JID, AccessModel, PresenceSubscription, RosterGroup, SubId, RSM) node_flat:get_items(Nidx, JID, AccessModel, PresenceSubscription, RosterGroup, SubId, RSM). +get_last_items(Nidx, From, Count) -> + node_flat:get_last_items(Nidx, From, Count). + get_item(Nidx, ItemId) -> node_flat:get_item(Nidx, ItemId). |