#1810 Removing affiliation from whitelist pubsub node does not remove subscription

Reporter Stephen Paul Weber
Owner Nobody
Stars ★ (1)
  • Status-New
  • Type-Defect
  • Priority-Medium
  1. Stephen Paul Weber on

    In util/pubsub.lua under set_affiliation ``` elseif jid_sub and not self:may(node, jid, "be_subscribed") then local ok, err = self:add_subscription(node, true, jid); if not ok then return ok, err; end end ``` I expect this means to be self:remove_subscription In testing when I use set_affiliation with nil it removes the affiliation but even on a whitelist node the subscription is not removed.

New comment

Not published. Used for spam prevention and optional update notifications.