mirror of
https://github.com/processone/ejabberd.git
synced 2024-09-27 14:30:55 +02:00
fix unsubscribing with SubID (thanks to Karim Gemayel)
This commit is contained in:
parent
e7d70933ac
commit
e1dd9ed875
@ -387,8 +387,8 @@ unsubscribe_node(NodeId, Sender, {U, S, R} = Subscriber, SubId) ->
|
||||
(_) -> false
|
||||
end, Subscriptions),
|
||||
case Sub of
|
||||
{value, S} ->
|
||||
delete_subscriptions(Subscriber, NodeId, [S], SubState),
|
||||
{value, Subscribed} ->
|
||||
delete_subscriptions(Subscriber, NodeId, [Subscribed], SubState),
|
||||
{result, default};
|
||||
false ->
|
||||
{error, ?ERR_EXTENDED('unexpected-request', "not-subscribed")}
|
||||
|
Loading…
Reference in New Issue
Block a user