telepathy-qt: ContactManager::Roster: Set success state even if groups not supported

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue May 5 23:32:42 UTC 2020


Module: telepathy-qt
Branch: master
Commit: aca4124a59f94059bca9c52824bb1059efe81e42
URL:    http://cgit.freedesktop.org/telepathy/telepathy-qt/commit/?id=aca4124a59f94059bca9c52824bb1059efe81e42

Author: Alexander Akulich <akulichalexander at gmail.com>
Date:   Tue Feb 11 21:10:50 2020 +0300

ContactManager::Roster: Set success state even if groups not supported

---

 TelepathyQt/contact-manager-roster.cpp | 5 +++--
 1 file 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;
     }
 



More information about the telepathy-commits mailing list