diff --git a/zerver/actions/message_flags.py b/zerver/actions/message_flags.py index c23ac7b3ac..962091a2db 100644 --- a/zerver/actions/message_flags.py +++ b/zerver/actions/message_flags.py @@ -38,7 +38,7 @@ def do_mark_all_as_read(user_profile: UserProfile, *, timeout: float | None = No # First, we clear mobile push notifications. This is safer in the # event that the below logic times out and we're killed. - all_push_message_ids = ( + all_push_message_ids = list( UserMessage.objects.filter( user_profile=user_profile, )