xep_0384: use correct variable name in deleteJID impl
Signed-off-by: Maxime “pep” Buquet <pep@bouah.net>
This commit is contained in:
parent
011aeaa7a2
commit
d3c2db0d08
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue