work on UI friends manager
This commit is contained in:
parent
4f39c5792a
commit
30a2ae8d06
7 changed files with 43 additions and 21 deletions
|
@ -201,3 +201,10 @@ class OnionrUser:
|
|||
conn.commit()
|
||||
conn.close()
|
||||
return True
|
||||
|
||||
@classmethod
|
||||
def list_friends(cls, coreInst):
|
||||
friendList = []
|
||||
for x in coreInst.listPeers(trust=1):
|
||||
friendList.append(cls(coreInst, x))
|
||||
return list(friendList)
|
Loading…
Add table
Add a link
Reference in a new issue