fix bug reported by @adbenitez

This commit is contained in:
holger krekel
2020-07-20 15:08:00 +02:00
parent 60b3550952
commit 2cbf2d8f65
3 changed files with 8 additions and 2 deletions

View File

@@ -246,7 +246,6 @@ class Account(object):
addr = as_dc_charpointer(addr)
name = as_dc_charpointer(name)
contact_id = lib.dc_create_contact(self._dc_context, name, addr)
assert contact_id > const.DC_CHAT_ID_LAST_SPECIAL, contact_id
return Contact(self, contact_id)
def delete_contact(self, contact):