From 87124a9d6a59a5b2c754c38fd5600b4cb2b74ea3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Fri, 2 Oct 2020 16:05:02 -0400 Subject: [PATCH] jams: update API (replace jamiId by id) Change-Id: I007aeaa520d4647d53f2ab590c57cfbacf5b6cee --- src/contactmodel.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/contactmodel.cpp b/src/contactmodel.cpp index 40ef288f..bc5ef10f 100644 --- a/src/contactmodel.cpp +++ b/src/contactmodel.cpp @@ -1170,11 +1170,11 @@ ContactModelPimpl::slotUserSearchEnded(const QString& accountId, } updateTemporaryMessage(""); for (auto& resultInfo : result) { - if (contacts.find(resultInfo.value("jamiId")) != contacts.end()) { + if (contacts.find(resultInfo.value("id")) != contacts.end()) { continue; } profile::Info profileInfo; - profileInfo.uri = resultInfo.value("jamiId"); + profileInfo.uri = resultInfo.value("id"); profileInfo.type = profile::Type::TEMPORARY; profileInfo.avatar = resultInfo.value("profilePicture"); profileInfo.alias = resultInfo.value("firstName") + " " + resultInfo.value("lastName"); -- GitLab