Commit 5d7bec4d authored by LNJ's avatar LNJ 🖖

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