added is_friend test for onionrusers and fixed bug where isFriend was setting instead of getting the value
This commit is contained in:
parent
ae8d1fc5ea
commit
d13d9a3039
2 changed files with 15 additions and 9 deletions
|
@ -87,7 +87,7 @@ class OnionrUser:
|
|||
keydb.userinfo.set_user_info(self.publicKey, 'trust', newTrust)
|
||||
|
||||
def isFriend(self):
|
||||
if keydb.userinfo.set_peer_info(self.publicKey, 'trust') == 1:
|
||||
if keydb.userinfo.get_user_info(self.publicKey, 'trust') == 1:
|
||||
return True
|
||||
return False
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue