From 86048f8a25ea820113a35350936b59ea9083c59f Mon Sep 17 00:00:00 2001 From: Badlop Date: Mon, 19 Nov 2018 17:31:35 +0100 Subject: [PATCH] Let deliver unsubscribe stanza when no roster push is required (#2598) --- src/mod_roster.erl | 2 ++ 1 file changed, 2 insertions(+) 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;