mirror of https://github.com/zulip/zulip.git
do_delete_messages_by_sender: Add missing list conversion.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
f4489c381c
commit
b405780561
|
@ -4609,7 +4609,7 @@ def do_delete_messages(realm: Realm, messages: Iterable[Message]) -> None:
|
|||
send_event(realm, event, users_to_notify)
|
||||
|
||||
def do_delete_messages_by_sender(user: UserProfile) -> None:
|
||||
message_ids = Message.objects.filter(sender=user).values_list('id', flat=True).order_by('id')
|
||||
message_ids = list(Message.objects.filter(sender=user).values_list('id', flat=True).order_by('id'))
|
||||
if message_ids:
|
||||
move_messages_to_archive(message_ids)
|
||||
|
||||
|
|
Loading…
Reference in New Issue