Comparison

plugins/mod_pep_plus.lua @ 8304:9f8476c77fa8

mod_pep_plus: Skip over roster metadata (version, pending) entry
author Kim Alvefur <zash@zash.se>
date Mon, 09 Oct 2017 00:05:18 +0200
parent 8303:053cf683c2c7
child 8305:ec605946e597
comparison
equal deleted inserted replaced
8303:053cf683c2c7 8304:9f8476c77fa8
346 end 346 end
347 end 347 end
348 hash_map[ver] = notify; -- update hash map 348 hash_map[ver] = notify; -- update hash map
349 if is_self then 349 if is_self then
350 for jid, item in pairs(origin.roster) do -- for all interested contacts 350 for jid, item in pairs(origin.roster) do -- for all interested contacts
351 if item.subscription == "both" or item.subscription == "from" then 351 if jid then
352 if not recipients[jid] then recipients[jid] = {}; end 352 if item.subscription == "both" or item.subscription == "from" then
353 update_subscriptions(contact, jid, notify); 353 if not recipients[jid] then recipients[jid] = {}; end
354 update_subscriptions(contact, jid, notify);
355 end
354 end 356 end
355 end 357 end
356 end 358 end
357 update_subscriptions(contact, user, notify); 359 update_subscriptions(contact, user, notify);
358 end); 360 end);