completion: Don't complete deleted devices in our own devices.

This commit is contained in:
Damir Jelić 2018-10-14 11:55:02 +02:00
parent f95f33d217
commit a99cc24d66

View file

@ -225,9 +225,9 @@ def matrix_own_devices_completion_cb(
if user not in olm.device_store.users: if user not in olm.device_store.users:
return W.WEECHAT_RC_OK 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( 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 return W.WEECHAT_RC_OK