diff --git a/storage.py b/storage.py index 90f4efa..3a6b462 100644 --- a/storage.py +++ b/storage.py @@ -153,7 +153,7 @@ class SyncFileStorage(omemo.Storage): return set(self.__devices.keys()) def deleteJID(self, _callback, bare_jid: str) -> None: - self.__session[bare_jid] = {} + self.__sessions[bare_jid] = {} filepath = os.path.join(self.storage_dir, 'sessions.json') with open(filepath, 'w') as f: json.dump(self.__sessions, f)