conversations: support new APIs for user search
Gitlab: #4
Change-Id: I7570099c20d2d406e538aea4c366ba7d85777686
diff --git a/src/qrimageprovider.h b/src/qrimageprovider.h
index cc8837e..e8822c6 100644
--- a/src/qrimageprovider.h
+++ b/src/qrimageprovider.h
@@ -53,7 +53,9 @@
/*
* For contact_xxx, xxx is "" initially
*/
- auto convInfo = LRCInstance::getConversationFromConvUid(list[1]);
+
+ auto convModel = LRCInstance::getCurrentConversationModel();
+ auto convInfo = convModel->getConversationForUID(list[1]);
auto contact = LRCInstance::getCurrentAccountInfo().contactModel->getContact(
convInfo.participants.at(0));
return QPair(QrType::Contact, contact.profileInfo.uri);
@@ -90,4 +92,4 @@
else
return Utils::setupQRCode(uri, 0);
}
-};
\ No newline at end of file
+};