Skip to content

[CHA-4661] feat: page getChannel messages by message ID - #265

Merged
mogita merged 3 commits into
mainfrom
feat/cha-4661-getchannel-message-pagination
Aug 13, 2026
Merged

[CHA-4661] feat: page getChannel messages by message ID#265
mogita merged 3 commits into
mainfrom
feat/cha-4661-getchannel-message-pagination

Conversation

@mogita

@mogita mogita commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

Adds messagesIdLt, messagesIdLte, messagesIdGt, messagesIdGte and messagesIdAround to Channel.getChannel(...). Bumble needs to page a channel's messages by message ID without getOrCreate, which can create the channel.

The cursors need state(true). A message ID the channel does not hold yields a 400, and two conflicting cursors yield a 400 as well. Both come from the backend, GetStream/chat#15616.

Verify: GetChannelTest asserts the cursors reach the payload query parameter, with no network access. Checked end to end against a shard that already runs the backend change: messagesIdLt and messagesIdGt page as expected, and an unknown cursor fails with 400. Integration tests follow once the backend change is deployed fleet-wide, because CI runs against a live app.

Until that deploy, a shard without the change ignores these fields and returns the unpaginated messages, so this SDK change is safe to release on its own.

Linear: https://linear.app/stream/issue/CHA-4661/bumble-wants-messageid-pagination-for-getchannel-endpoint

mogita added 3 commits August 12, 2026 16:40
Adds messagesIdLt, messagesIdLte, messagesIdGt, messagesIdGte and
messagesIdAround to the getChannel request. They page the messages of the
channel by message ID, so a caller no longer needs getOrCreate for that.

The cursors need state(true), and a message ID the channel does not hold
yields a 404.
Pages a three-message channel with messagesIdLt and messagesIdGt, and asserts
that a cursor the channel does not hold fails with 400.
@mogita
mogita merged commit ba0a159 into main Aug 13, 2026
5 of 6 checks passed
@mogita
mogita deleted the feat/cha-4661-getchannel-message-pagination branch August 13, 2026 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant