From d3c2db0d0898915475437fc03189d42b86ab7ecb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 12 Jan 2019 15:37:04 +0000 Subject: [PATCH] xep_0384: use correct variable name in deleteJID impl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- storage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)