work on UI friends manager

This commit is contained in:
Kevin Froman 2019-02-21 19:55:13 -06:00
parent 4f39c5792a
commit 30a2ae8d06
7 changed files with 43 additions and 21 deletions

View file

@ -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)