Create contacts cache

This commit is contained in:
Angela Mazzurco 2017-06-21 16:30:48 +02:00
parent 923c0c6da3
commit 05ca5b482c

View File

@ -96,4 +96,22 @@ QtObject
}
}
property QtObject contactsCache: QtObject
{
id: contactsCache
property var contactsList
function getContactFromGxsId (gxsId)
{
console.log("getContactFromGxsId (gxsId)", gxsId)
for(var i in contactsList)
{
if (contactsList[i].gxs_id == gxsId) return contactsList[i]
}
}
}
}