Skip to content

Conversation

@isekovanic
Copy link
Contributor

CLA

  • I have signed the Stream CLA (required).
  • Code changes are tested

Description of the changes, What, Why and How?

This PR introduces a new API in ChannelState that can be used to prune messages from the back of our current messageSet and update all pagination related properties.

This can be useful in situations where we might have a huge number of messages that we do not necessarily want to keep in memory (i.e a livestream) and want to gradually prune while still allowing normal pagination to work as intended.

Changelog

@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2025

Size Change: +212 B (+0.06%)

Total Size: 354 kB

Filename Size Change
dist/cjs/index.browser.js 118 kB +71 B (+0.06%)
dist/cjs/index.node.js 119 kB +70 B (+0.06%)
dist/esm/index.mjs 117 kB +71 B (+0.06%)

compressed-size-action

@isekovanic isekovanic merged commit 137dca6 into master Oct 15, 2025
4 checks passed
@isekovanic isekovanic deleted the feat/message-pruning-api branch October 15, 2025 09:09
github-actions bot pushed a commit that referenced this pull request Oct 15, 2025
## [9.23.0](v9.22.1...v9.23.0) (2025-10-15)

### Features

* add an api to prune messages from the end ([#1635](#1635)) ([137dca6](137dca6))
* add MentionsSearchSource.toUserSuggestion method ([#1637](#1637)) ([e5e0dbf](e5e0dbf))
* add offline support for delete message for me feature ([#1633](#1633)) ([0ded575](0ded575))

### Refactors

* make channel and client protected in CommandSearchSource and MentionsSearchSource ([#1636](#1636)) ([afe749d](afe749d))
@stream-ci-bot
Copy link

🎉 This PR is included in version 9.23.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants