mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 22:13:26 +00:00
do_update_pointer: Fix missing where= declaration.
Fixes a regression introduced in 23246ff816.
However, we'll be shortly removing this feature, since it's legacy
support for an app that no longer is supported.
This commit is contained in:
@@ -3549,8 +3549,9 @@ def do_update_pointer(user_profile: UserProfile, client: Client,
|
|||||||
# up until the pointer move
|
# up until the pointer move
|
||||||
UserMessage.objects.filter(user_profile=user_profile,
|
UserMessage.objects.filter(user_profile=user_profile,
|
||||||
message__id__gt=prev_pointer,
|
message__id__gt=prev_pointer,
|
||||||
message__id__lte=pointer).extra([UserMessage.where_unread()]) \
|
message__id__lte=pointer).extra(
|
||||||
.update(flags=F('flags').bitor(UserMessage.flags.read))
|
where=[UserMessage.where_unread()]).update(
|
||||||
|
flags=F('flags').bitor(UserMessage.flags.read))
|
||||||
|
|
||||||
event = dict(type='pointer', pointer=pointer)
|
event = dict(type='pointer', pointer=pointer)
|
||||||
send_event(event, [user_profile.id])
|
send_event(event, [user_profile.id])
|
||||||
|
|||||||
Reference in New Issue
Block a user