Commit e25050d0 authored by LNJ's avatar LNJ 💬

RosterManager: Add missing documentation

Co-authored-by: default avatarMelvin Keskin <melvo@kaidan.im>
parent 5d7bec4d
......@@ -82,6 +82,8 @@ RosterManager::RosterManager(Kaidan *kaidan,
this, [=] (QString jid, bool accepted) {
if (accepted) {
manager.acceptSubscription(jid);
// do not send a subscription request if both users have already subscribed
// each others presence
if (manager.getRosterEntry(jid).subscriptionType() != QXmppRosterIq::Item::Both)
manager.subscribe(jid);
} else {
......
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