history fixes - db cleanup

This commit is contained in:
ingvar1995 2018-05-15 22:51:42 +03:00
parent f1c63bb4e8
commit eef02a1173
11 changed files with 418 additions and 486 deletions

View file

@ -296,6 +296,7 @@ class ContactsManager:
Adds friend to list
"""
self._tox.friend_add_norequest(tox_id)
self._history.add_friend_to_db(tox_id)
friend = self._contact_provider.get_friend_by_public_key(tox_id)
self._contacts.append(friend)