Send an additional unsubscribed presence when receiving an unsubscribe one

This commit is contained in:
louiz’ committed 2017-07-16 00:16:43 +02:00
1 parent 7e5cd2f130
commit 368bb82818
2 files changed
+3

No files matched your search

+1
View File
@@ -181,6 +181,7 @@ 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(), "unsubscribed");
this->send_presence_to_contact(to_str, from.bare(), "unsubscribe");
#ifdef USE_DATABASE
const bool res = Database::has_roster_item(to_str, from.bare());