mirror of
https://github.com/processone/ejabberd.git
synced 2024-10-19 15:32:08 +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
|
(_) -> false
|
||||||
end, Subscriptions),
|
end, Subscriptions),
|
||||||
case Sub of
|
case Sub of
|
||||||
{value, S} ->
|
{value, Subscribed} ->
|
||||||
delete_subscriptions(Subscriber, NodeId, [S], SubState),
|
delete_subscriptions(Subscriber, NodeId, [Subscribed], SubState),
|
||||||
{result, default};
|
{result, default};
|
||||||
false ->
|
false ->
|
||||||
{error, ?ERR_EXTENDED('unexpected-request', "not-subscribed")}
|
{error, ?ERR_EXTENDED('unexpected-request', "not-subscribed")}
|
||||||
|
Loading…
Reference in New Issue
Block a user