Skip to content

feat(chat): wire RemoteMediator for paged message loading and improve chat open speed#915

Merged
bmc08gt merged 1 commit into
code/cashfrom
feat/message-paging
Jun 16, 2026
Merged

feat(chat): wire RemoteMediator for paged message loading and improve chat open speed#915
bmc08gt merged 1 commit into
code/cashfrom
feat/message-paging

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Jun 16, 2026

Copy link
Copy Markdown
Collaborator
  • Wire ChatMessageRemoteMediator into Pager for backward pagination (older messages on scroll up) with cursor-based paging tokens
  • Fix mediator APPEND to pass messageId cursor via ByteBuffer encoding
  • Eagerly load messages in OnChatOpened handler instead of waiting for state roundtrip, so fetch starts during navigation transition
  • Prefetch first page of messages during feed sync for chats with no cached messages
  • Hide ContactInfoContainer until messages have loaded to prevent flash
  • Add hasMessages/getLatestMessageId helpers to ChatMessageDataSource

… chat open speed

- Wire ChatMessageRemoteMediator into Pager for backward pagination
  (older messages on scroll up) with cursor-based paging tokens
- Fix mediator APPEND to pass messageId cursor via ByteBuffer encoding
- Eagerly load messages in OnChatOpened handler instead of waiting for
  state roundtrip, so fetch starts during navigation transition
- Prefetch first page of messages during feed sync for chats with no
  cached messages
- Hide ContactInfoContainer until messages have loaded to prevent flash
- Add hasMessages/getLatestMessageId helpers to ChatMessageDataSource

Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
@bmc08gt bmc08gt self-assigned this Jun 16, 2026
@bmc08gt bmc08gt merged commit aea7cd5 into code/cash Jun 16, 2026
@bmc08gt bmc08gt deleted the feat/message-paging branch June 16, 2026 15:30
@github-actions github-actions Bot added the type: feature New functionality label Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant