mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Create contacts cache
This commit is contained in:
parent
923c0c6da3
commit
05ca5b482c
@ -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]
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user