From 011aeaa7a279e06657ce2b42764bd00a4133ae81 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:35:28 +0000 Subject: [PATCH] xep_0384: Change listJIDs' return value to set MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- storage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/storage.py b/storage.py index ccc6cb9..90f4efa 100644 --- a/storage.py +++ b/storage.py @@ -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] = {}