From a99cc24d668f22caf21cb7b373c0366f7d295572 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Damir=20Jeli=C4=87?= Date: Sun, 14 Oct 2018 11:55:02 +0200 Subject: [PATCH] completion: Don't complete deleted devices in our own devices. --- matrix/completion.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/matrix/completion.py b/matrix/completion.py index 0df1362..56644e6 100644 --- a/matrix/completion.py +++ b/matrix/completion.py @@ -225,9 +225,9 @@ def matrix_own_devices_completion_cb( if user not in olm.device_store.users: return W.WEECHAT_RC_OK - for device in olm.device_store[user]: + for device in olm.device_store.active_user_devices(user): W.hook_completion_list_add( - completion, device, 0, W.WEECHAT_LIST_POS_SORT + completion, device.id, 0, W.WEECHAT_LIST_POS_SORT ) return W.WEECHAT_RC_OK