xep_0384: use correct variable name in deleteJID impl

Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
Maxime “pep” Buquet 2019-01-12 15:37:04 +00:00
parent 011aeaa7a2
commit d3c2db0d08

View file

@ -153,7 +153,7 @@ class SyncFileStorage(omemo.Storage):
return set(self.__devices.keys()) return set(self.__devices.keys())
def deleteJID(self, _callback, bare_jid: str) -> None: 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') filepath = os.path.join(self.storage_dir, 'sessions.json')
with open(filepath, 'w') as f: with open(filepath, 'w') as f:
json.dump(self.__sessions, f) json.dump(self.__sessions, f)