diff options
author | Alexander Akulich <akulichalexander@gmail.com> | 2020-02-11 21:10:50 +0300 |
---|---|---|
committer | Alexander Akulich <akulichalexander@gmail.com> | 2020-03-12 01:37:24 +0300 |
commit | aca4124a59f94059bca9c52824bb1059efe81e42 (patch) | |
tree | 37a697a85988aba6209a8797daea788ff6f21f7f | |
parent | 9be7311a093221ccf548cf50fe75845919ab03e7 (diff) |
ContactManager::Roster: Set success state even if groups not supported
-rw-r--r-- | TelepathyQt/contact-manager-roster.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/TelepathyQt/contact-manager-roster.cpp b/TelepathyQt/contact-manager-roster.cpp index 70acc69d..6322ee59 100644 --- a/TelepathyQt/contact-manager-roster.cpp +++ b/TelepathyQt/contact-manager-roster.cpp @@ -831,8 +831,9 @@ void ContactManager::Roster::gotContactListContacts(QDBusPendingCallWatcher *wat contactListContacts.insert(contact); } - if (contactManager->connection()->requestedFeatures().contains( - Connection::FeatureRosterGroups)) { + const bool groupsRequested = conn->requestedFeatures().contains(Connection::FeatureRosterGroups); + const bool groupsSupported = conn->hasInterface(TP_QT_IFACE_CONNECTION_INTERFACE_CONTACT_GROUPS); + if (groupsRequested && groupsSupported) { groupsSetSuccess = true; } |