aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBadlop <badlop@process-one.net>2018-11-19 17:31:35 +0100
committerBadlop <badlop@process-one.net>2018-12-05 11:45:54 +0100
commit86048f8a25ea820113a35350936b59ea9083c59f (patch)
tree8c9beda8daceff99351ab7515d0aef27a7574ef7
parentUse tagged version of pkix dependency (diff)
Let deliver unsubscribe stanza when no roster push is required (#2598)
-rw-r--r--src/mod_roster.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mod_roster.erl b/src/mod_roster.erl
index 1f42b69e0..f5b8e6a19 100644
--- a/src/mod_roster.erl
+++ b/src/mod_roster.erl
@@ -623,6 +623,8 @@ process_subscription(Direction, User, Server, JID1,
push_item(jid:make(User, Server), OldItem, NewItem)
end,
true;
+ none when (Direction == in) and (Type == unsubscribe) ->
+ true;
none ->
false
end;