message_fetch: Support storing multiple contiguous blocks of history #16697
Labels
area: message feed (uncategorized)
difficult
Issues which we expect to be quite difficult
priority: high
This is a feature that likely only makes sense to do once we've completed #15131, but might be a design consideration for how we complete that effort.
Ideally, the
message_list_data
data structures would support caching more than one contiguous block of message history. The obvious use case is when we're loading thehome_msg_list
data:first_unread
message, because that's where we'll land users when they click around the UI at places with unread messages.We ideally want this feature for narrowed message lists as well, at least once we've done #15131, since that would support rendering message history without going to the server in more cases.
I'm not sure what the right way to structure this is; one idea would be to support multiple
message_list_data
objects for a given filter, one for each contiguous segment; then the FetchStatus logic (etc.) would all work naturally, and we'd just merge the objects once their message ID ranges overlap. Certainly that version would only make sense to consider once we've finished #15131.@ryanreh99 @amanagr FYI.
The text was updated successfully, but these errors were encountered: