diff options
author | louiz’ <louiz@louiz.org> | 2017-06-23 14:45:44 +0200 |
---|---|---|
committer | louiz’ <louiz@louiz.org> | 2017-07-16 00:16:43 +0200 |
commit | 71f125db1a11f4b728beee1d1aa2ef7d37f38000 (patch) | |
tree | bd3c8fc8ced6269ab6c53af7da097e355f7b85ae /src/xmpp/biboumi_component.cpp | |
parent | 84034ed3dc19f718dcc93a35dbf4c840a55efb1b (diff) | |
download | biboumi-71f125db1a11f4b728beee1d1aa2ef7d37f38000.tar.gz biboumi-71f125db1a11f4b728beee1d1aa2ef7d37f38000.tar.bz2 biboumi-71f125db1a11f4b728beee1d1aa2ef7d37f38000.tar.xz biboumi-71f125db1a11f4b728beee1d1aa2ef7d37f38000.zip |
Send responses when we receive an unsubscribed presence
Diffstat (limited to 'src/xmpp/biboumi_component.cpp')
-rw-r--r-- | src/xmpp/biboumi_component.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/xmpp/biboumi_component.cpp b/src/xmpp/biboumi_component.cpp index f3381aa..263b7bd 100644 --- a/src/xmpp/biboumi_component.cpp +++ b/src/xmpp/biboumi_component.cpp @@ -180,6 +180,8 @@ void BiboumiComponent::handle_presence(const Stanza& stanza) } else if (type == "unsubscribe") { + this->send_presence_to_contact(to_str, from.bare(), "unavailable", id); + this->send_presence_to_contact(to_str, from.bare(), "unsubscribe"); #ifdef USE_DATABASE const bool res = Database::has_roster_item(to_str, from.bare()); if (res) |