xep_0384: Change listJIDs' return value to set

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

View file

@ -149,8 +149,8 @@ class SyncFileStorage(omemo.Storage):
return self.__trust.get(bare_jid, {}).get(device_id)
def listJIDs(self, _callback) -> List[str]:
return (self.__devices.keys())
def listJIDs(self, _callback) -> Set[str]:
return set(self.__devices.keys())
def deleteJID(self, _callback, bare_jid: str) -> None:
self.__session[bare_jid] = {}