added is_friend test for onionrusers and fixed bug where isFriend was setting instead of getting the value

This commit is contained in:
Kevin Froman 2020-04-05 23:35:03 -05:00
parent ae8d1fc5ea
commit d13d9a3039
2 changed files with 15 additions and 9 deletions

View file

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