add contact fixes
This commit is contained in:
parent
23b603241e
commit
38593b7db1
2 changed files with 4 additions and 2 deletions
|
|
@ -494,7 +494,7 @@ class Profile(Contact, Singleton):
|
|||
try:
|
||||
message = message or 'Add me to your contact list'
|
||||
if '@' in tox_id: # value like groupbot@toxme.io
|
||||
tox_id = tox_dns()
|
||||
tox_id = tox_dns(tox_id)
|
||||
if tox_id is None:
|
||||
raise Exception('TOX DNS lookup failed')
|
||||
result = self.tox.friend_add(tox_id, message.encode('utf-8'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue