mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-24 15:05:35 -04:00
Create contacts cache
This commit is contained in:
parent
923c0c6da3
commit
05ca5b482c
1 changed files with 18 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue