Commit 71f125db authored by louiz’'s avatar louiz’

Send responses when we receive an unsubscribed presence

parent 84034ed3
...@@ -180,6 +180,8 @@ void BiboumiComponent::handle_presence(const Stanza& stanza) ...@@ -180,6 +180,8 @@ void BiboumiComponent::handle_presence(const Stanza& stanza)
} }
else if (type == "unsubscribe") 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 #ifdef USE_DATABASE
const bool res = Database::has_roster_item(to_str, from.bare()); const bool res = Database::has_roster_item(to_str, from.bare());
if (res) if (res)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment