From fce92a003debeaa4df6e78b58ebcb09ede377e34 Mon Sep 17 00:00:00 2001
From: Alberto Mardegan <mardy@users.sourceforge.net>
Date: Wed, 10 Aug 2022 22:56:10 +0300
Subject: [PATCH 2/2] MessagingContactViewPage: use ContactListModel from
 AddressBook

The classes provided by the Ubuntu.AddressBook module expect a model of
type ContactListModel, which has a few extra methods compared to QtPim's
basic ContactModel. Without it, some functionality is not working.

Fixes: https://github.com/ubports/messaging-app/issues/347
(cherry picked from commit 303bc2fc759b7619727d6c06cc0139a55c0cba80)
Signed-off-by: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
---
 src/qml/MessagingContactViewPage.qml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/qml/MessagingContactViewPage.qml b/src/qml/MessagingContactViewPage.qml
index 3a76f4f9..fa949e0b 100644
--- a/src/qml/MessagingContactViewPage.qml
+++ b/src/qml/MessagingContactViewPage.qml
@@ -124,7 +124,7 @@ ContactViewPage {
     Component {
         id: contactModelComponent
 
-        ContactModel {
+        ContactListModel {
             id: contactModelHelper
 
             manager: ContactManager.manager()
-- 
2.39.5

