completion: Don't complete deleted devices in our own devices.
This commit is contained in:
parent
f95f33d217
commit
a99cc24d66
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue