24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-16 22:05:29 +02:00

fix unsubscribing with SubID (thanks to Karim Gemayel)

This commit is contained in:
Christophe Romain 2010-05-12 11:47:43 +02:00
parent e7d70933ac
commit e1dd9ed875

View File

@ -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")}