Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit 5d7bec4d authored by Linus Jahn's avatar Linus Jahn

Send subscription request back when accepting incoming request

parent a0cce00d
Pipeline #4973 canceled with stages
......@@ -80,10 +80,13 @@ RosterManager::RosterManager(Kaidan *kaidan,
});
connect(kaidan, &Kaidan::subscriptionRequestAnswered,
this, [=] (QString jid, bool accepted) {
if (accepted)
if (accepted) {
manager.acceptSubscription(jid);
else
if (manager.getRosterEntry(jid).subscriptionType() != QXmppRosterIq::Item::Both)
manager.subscribe(jid);
} else {
manager.refuseSubscription(jid);
}
});
// update local copy of chat partner
......
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