diff options
author | Kim Alvefur <zash@zash.se> | 2018-04-11 15:52:13 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-04-11 15:52:13 +0200 |
commit | 76db204ec0e3922de2cef6a9bc5d6aa0516946e2 (patch) | |
tree | 09d3959a7739fb81bc4e6cfbd9994eec625ec344 /plugins/mod_pep_plus.lua | |
parent | 2ec4838cfd524566ae1d9218fb2616557e16d0c0 (diff) | |
download | prosody-76db204ec0e3922de2cef6a9bc5d6aa0516946e2.tar.gz prosody-76db204ec0e3922de2cef6a9bc5d6aa0516946e2.zip |
mod_pep_plus: Skip getting PEP service instance for sessions that have not touched PEP
Diffstat (limited to 'plugins/mod_pep_plus.lua')
-rw-r--r-- | plugins/mod_pep_plus.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pep_plus.lua b/plugins/mod_pep_plus.lua index 083b96b1..fdc8cdbf 100644 --- a/plugins/mod_pep_plus.lua +++ b/plugins/mod_pep_plus.lua @@ -268,7 +268,6 @@ local function resend_last_item(jid, node, service) end local function update_subscriptions(recipient, service_name, nodes) - local service = get_pep_service(service_name); nodes = nodes or empty_set; local service_recipients = recipients[service_name]; @@ -286,6 +285,7 @@ local function update_subscriptions(recipient, service_name, nodes) return; end + local service = get_pep_service(service_name); for node in current - nodes do service:remove_subscription(node, recipient, recipient); end |