-
Notifications
You must be signed in to change notification settings - Fork 320
Open
Labels
a-modelImplementing our data model (PerAccountStore, etc.)Implementing our data model (PerAccountStore, etc.)a-msglistThe message-list screen, except what's label:a-contentThe message-list screen, except what's label:a-contentbeta feedbackThings beta users have specifically asked forThings beta users have specifically asked for
Milestone
Description
I ran into an odd bug yesterday in the iOS app:
- Muted a topic ("zulip.yaml") in the
#api documentation
channel on CZO - In the Flutter app, opened the channel narrow for
#api documentation
Expected: to see the channel feed as usual, just without messages in the topic I muted
Actual: I only saw one message! 🙂 The most recent in the channel. And nothing above it saying I'd reached the start of the channel, or that it was still loading more messages:

Diagnosis
I think two things are breaking this:
- When the visible messages occupy much less than a screenful, the
ScrollPhysics
doesn't allow changing the scroll position, so the user can't trigger a neededfetchOlder
. This is happening here because apparently 99 of the 100 messages fromfetchInitial
are muted. A simple fix is to useAlwaysScrollableScrollPhysics
for the message list. - Normally, a
fetchOlder
response will cause us to do the nextfetchOlder
request with a different, older message as the "anchor". Here, though, we're sending the samefetchOlder
request with the same anchor. Why? Because the anchor we request is the oldest visible (non-muted;_messageVisible
) message. If thefetchOlder
response is entirely messages that we don't count as visible, then "the oldest visible message", and therefore the anchor, won't change.
Metadata
Metadata
Assignees
Labels
a-modelImplementing our data model (PerAccountStore, etc.)Implementing our data model (PerAccountStore, etc.)a-msglistThe message-list screen, except what's label:a-contentThe message-list screen, except what's label:a-contentbeta feedbackThings beta users have specifically asked forThings beta users have specifically asked for
Type
Projects
Status
No status