Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark-unread can fail if topic was concurrently moved #1045

Open
gnprice opened this issue Nov 5, 2024 · 0 comments · May be fixed by #1044
Open

Mark-unread can fail if topic was concurrently moved #1045

gnprice opened this issue Nov 5, 2024 · 0 comments · May be fixed by #1044
Labels
a-msglist The message-list screen, except what's label:a-content
Milestone

Comments

@gnprice
Copy link
Member

gnprice commented Nov 5, 2024

Scenario:

  • You long-press a message, because you want to mark the conversation unread starting from there.
  • While you have the action sheet open, the topic gets moved — for example, perhaps it gets resolved.
    • This causes the message list to update to the new topic, as seen for example in the app bar.
  • Then you hit the "mark as unread" option in the action sheet.

Expected behavior: The message and the subsequent conversation still get marked as unread.

Actual behavior: Nothing happens. (Concretely, the app sends a mark-as-unread request aimed at the old narrow. Typically there will be no matching messages and so nothing will happen.)

I discovered this bug in the course of making other changes to the action-sheet code. #1044 contains a fix.

@gnprice gnprice added the a-msglist The message-list screen, except what's label:a-content label Nov 5, 2024
@gnprice gnprice added this to the Launch milestone Nov 5, 2024
gnprice added a commit to gnprice/zulip-flutter that referenced this issue Nov 5, 2024
…sheet opened

The narrow of a given MessageListPage can change over time,
in particular if viewing a topic that gets moved.

If it does, the mark-unread action should follow along.  Otherwise
we'd have a frustrating race where mark-unread just didn't work
if, for example, someone happened to resolve the topic while you
were in the middle of trying to mark as unread.

Fixes: zulip#1045
@gnprice gnprice linked a pull request Nov 5, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a-msglist The message-list screen, except what's label:a-content
Projects
Status: No status
Development

Successfully merging a pull request may close this issue.

1 participant