db and settings encryption

This commit is contained in:
ingvar1995 2016-05-15 23:02:05 +03:00
parent 0fa7ca7b5c
commit 21d5eed719
3 changed files with 28 additions and 0 deletions

View file

@ -580,6 +580,7 @@ class Profile(Contact, Singleton):
if not self._history.friend_exists_in_db(friend.tox_id):
self._history.add_friend_to_db(friend.tox_id)
self._history.save_messages_to_db(friend.tox_id, messages)
self._history.save()
del self._history
def clear_history(self, num=None):