contactmodel: refactor profile loading

Loading the profile elements from disk is now deferred to consumption. Implements a basic caching mechanism for the displayname and avatar elements.

Gitlab: #1459
Change-Id: Ic5aeec6649c198f617b9269409ded647c7536b8f
This commit is contained in:
Andreas Traczyk
2024-02-15 17:38:36 -05:00
committed by Adrien Béraud
parent 6d20d3b515
commit 610c27f751
26 changed files with 635 additions and 469 deletions

View File

@@ -64,7 +64,7 @@ TEST_F(ContactFixture, AddSIPContactTest)
// ModelUpdated signal spy
QSignalSpy modelUpdatedSpy(globalEnv.lrcInstance->getCurrentContactModel(),
&lrc::api::ContactModel::modelUpdated);
&lrc::api::ContactModel::contactUpdated);
// Add temp contact test
globalEnv.lrcInstance->getCurrentConversationModel()->setFilter("test");