25
1
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:
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 (_) -> 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")}