~singpolyma/biboumi

71f125db1a11f4b728beee1d1aa2ef7d37f38000 — louiz’ 6 years ago 84034ed
Send responses  when we receive an unsubscribed presence
1 files changed, 2 insertions(+), 0 deletions(-)

M src/xmpp/biboumi_component.cpp
M src/xmpp/biboumi_component.cpp => src/xmpp/biboumi_component.cpp +2 -0
@@ 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)