Repository navigation
Next Release - #4027
Merged
Merged
Next Release#4027
Conversation
Ticket: https://linear.app/stream/issue/RN-537 ## π― Goal Follow-up to #4014, which moved the sample app distribution to Xcode 27. The nightly iOS e2e (`e2e-test-cron.yml`) still builds with Xcode 26.2 on `macos-15`, so it never runs on iOS 27. ## π Implementation details - The nightly `ios` job runs on the `xcode-27` runner image with Xcode 27.2, like the distribution job. - The latest-iOS leg moves from iOS 26.2 (iPhone 17 Pro) to iOS 27.2 (iPhone 18 Pro). The image ships that simulator, and has no iPhone 17 Pro. - The iOS 17.5 leg is unchanged: it still downloads and installs its runtime through `setup-ios-runtime`, now under Xcode 27. The build caches are keyed on `XCODE_VERSION`, so the first Xcode 27 run builds from scratch. ##β οΈ To verify before merging The nightly does not run on pull requests. Dispatch `e2e-test-cron` on this branch with only `ios` enabled. The open question is the 17.5 leg: if its runtime does not install or boot under Xcode 27 on macOS 27, the job stops at the "No iPhone 15 Pro on iOS 17.5" check. In that case that leg can stay on `macos-15` with Xcode 26.2.
## Summary Migrate GitHub-hosted Linux workflow jobs to the org static-IP runner group(s): `github-public-amd64`. With the `GetStream` organization IP allow list enabled, standard dynamic-IP GitHub runners (`ubuntu-latest`, `ubuntu-24.04`, etc.) are blocked from authenticated GitHub API / git access. ### Updated workflows (7 file(s), 15 `runs-on` update(s)) - `.github/workflows/cancel-pr-checks.yml` (1 job(s)) - `.github/workflows/changelog-preview.yml` (1 job(s)) - `.github/workflows/e2e-test-cron.yml` (5 job(s)) - `.github/workflows/e2e-test.yml` (5 job(s)) - `.github/workflows/lint-pr-title.yml` (1 job(s)) - `.github/workflows/release.yml` (1 job(s)) - `.github/workflows/sdk-size-metrics.yml` (1 job(s)) ### Cutover note This PR targets the standardized org runner group name(s) (`github-public-amd64`). PR checks that target a group being renamed (`github-public-ubuntu-static` β `github-public-amd64`, `github-private-repos` β `github-private-amd64`, `github-arm64` β `github-private-arm64`) will queue until the org runner groups are renamed during cutover.
β¦nt (#4026) ## π― Goal Ticket: https://linear.app/stream/issue/REACT-1376 The React Native counterpart of GetStream/stream-chat-react#3413. When channels are queried with `include_active_member_count: true`, the member counts the UI displays use the active member count (members who are not deactivated or deleted). Without the option nothing changes. ## π Implementation details - New public hook `useDisplayedChannelMemberCount(channel)`, exported from `src/hooks`. It reads `activeMemberCount` and `memberCount` from `channel.state` and returns `activeMemberCount ?? memberCount`. - `useChannelDetailsMemberStatusText` uses it for the "N members, M online" text. - `useChannelDetailsMembersPreview` uses it for `total`. `hasMore` still follows the total member count, since deactivated members are still listed. - The `ChannelDetailsBottomSheet` header uses it in place of the number of loaded members, so large channels no longer show the capped loaded count. - `ChannelAvatar` uses it for the count in the group accessibility label. `isGroup` is unchanged. - The SampleApp channel header (`useChannelMembersStatus`) now reads everything through the SDK hooks and shows the displayed count. Direct chat checks are unchanged, so a DM whose other member is deactivated stays a DM. `useChannelMemberCount` is unchanged and keeps returning the total. ## π¨ UI Changes No visible change unless the app queries channels with `include_active_member_count: true`. The SampleApp does not. ## π§ͺ Testing - `useDisplayedChannelMemberCount.test.ts` covers the fallback to `memberCount`, preferring `activeMemberCount` (including 0), and following state changes. - `useChannelDetailsMembersPreview`, `ChannelDetailsBottomSheet` and `ChannelAvatar` tests cover the active count, and `useChannelDetailsMemberStatusText` tests mock the new hook. ## βοΈ Checklist - [ ] I have signed the [Stream CLA](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform) (required) - [x] PR targets the `develop` branch - [ ] Documentation is updated - [ ] New code is tested in main example apps, including all possible scenarios - [ ] SampleApp iOS and Android - [ ] Expo iOS and Android
Ticket: https://linear.app/stream/issue/RN-542 (backend: https://linear.app/stream/issue/CHA-6554) Replaces #3962. Depends on GetStream/stream-chat-js#2039. Typecheck fails until a `stream-chat` release ships `markMessagePlayed`, `channel.config.markTypes`, the marks types and the offline DB's `getMessageMarks` and `insertMessageMark`. The synced design tokens come from GetStream/design-system-tokens#83. ## π― Goal Show the author of a voice note, audio file or video that other users played it, following the "Message Marks" design. ## π Implementation details - Marking follows the player, not the component. Audio and video players take an optional `onPlaybackStarted` callback, called on each progress once playback advances, after any download and buffering, until it returns `true`. The message is marked once it actually plays, even if its bubble scrolled away while the audio buffered. A pool keeps a player's callback when a later caller passes none. - `AudioAttachment` passes a callback for its message. Composer previews pass none and are never marked. - `AnimatedGalleryVideo` passes a callback for the video's message. `openImageGallery` takes an optional `channel`, which `Gallery` and the channel details `MediaList` pass. A gallery opened without one marks nothing. - Apps decide what playing media does through `ChatConfigProvider`, which takes an optional `handlePlaybackStarted({ attachment, markPlayed, message, player })`. It is called as playback advances until it returns `true`, so returning `false` can wait for a minimum played time, and it can skip marking or branch on `attachment.type` or `message.cid`. Without it the message is marked as soon as playback starts. Render the provider above `OverlayProvider` so it also reaches gallery videos. The types are `HandlePlaybackStarted` and `PlaybackStartedParams`. - `useMarkMessagePlayed` is public, for a custom player that does not use the SDK's players. ### Gallery autoplay fix - With `autoPlayVideo` on, every gallery player was created playing, so the slides next to the shown one played off screen, sound included, and moving to another slide paused nothing, because autoplay never went through `play()` and the pool had no active player. The same code is in v9. - Players now start paused, and a slide plays its video once it is shown, through a store subscription that renders nothing. Moving to another slide pauses the old video before the new index is published, so the new slide's autoplay is not paused right after it starts. - Only the shown video plays now, so marking no longer needs to skip slides that are not shown. - The client decides whether to send: it skips channel types without the `played` mark, the user's own messages and messages the user already marked, and queues the mark while offline. A failed mark is ignored. - A new `MessageMark` slot shows the mark in the footer's status row, before the delivery status and separated from it by a dot. A direct message reads "Played", any other channel "Played by" and the count, capped at 99+. It uses the read colour and the theme tokens, with theme keys `messageItemView.mark.{container,text,separator}`. - The mark shows only once someone played the message and only when `channel.config.markTypes` includes `played`. There is no opt-in prop. Turning marks on for the channel type is the switch. - Played messages stay in their group. An earlier message in a group shows only the mark, without the delivery status or timestamp, so the time is not read as the time it was played. The last message keeps the full row. - The `Message` and `MessageFooter` memo comparators and `stringifyMessage` include the played count, so a mark that arrives while the channel is open re-renders the row. ### Offline mark lists - The offline database stores marks the way it stores reactions, so a "Played by" list (`MessageMarkPaginator` in `stream-chat`) opens offline from the stored marks while its first page loads. - A new `messageMarks` table holds one row per marker (`messageId`, `userId`, `type`, `createdAt`), deleted with its message. Rows come from each stored message's `mark_groups`, which carries the newest markers per type (up to 100), and from `message.mark_added`. - `mark_groups` and `own_marks` move out of `extraData` into their own `markGroups` and `ownMarks` columns, as `reaction_groups` has `reactionGroups`, so a new mark updates them without rewriting the message. - `OfflineDB` implements `getMessageMarks`, the stored marks on a message newest first and joined to the stored users (a mark whose user is not stored lists with the user's ID), and `insertMessageMark`, which stores the mark, the user who made it and the two columns. - `SqliteClient.dbVersion` goes from 19 to 20, so existing installs rebuild their offline database once on update. ### Design tokens - The generated tokens are synced to the latest design-system-tokens build (last synced in June). The token repo has since renamed or removed 55 semantic tokens (`chat*` β `messageBubble*`, `presence*` β `avatarPresence*`, the `avatarPalette*` set, ...). Its React Native build now keeps every old name mapped to the current token (GetStream/design-system-tokens#83), so `theme.semantics` only gains keys and the SDK compiles unchanged. The old names are removed in the next major. - Some token values changed in the design. Dark-mode mention text is now `blue200` instead of `blue400`. `accentWarning` and the avatar default colours changed too, but no SDK component reads them directly. - `AGENTS.md` now says where the tokens come from, that the old names are adapters kept in the token repo, and that new code uses the current names. ### Avatars - Avatars without an image use `avatarBgDefault` and `avatarTextDefault` instead of a colour picked per user or channel from the 5-colour palette, following the current design. Light mode matches what palette 1 looked like. In dark mode the default is the mode-aware brand colour. The `avatarPalette*` keys stay in `theme.semantics` through the token adapter, so integrators can still use them. ## π¨ UI Changes <details> <summary>iOS</summary> <table> <thead> <tr> <td>Before</td> <td>After</td> </tr> </thead> <tbody> <tr> <td> <!--<img src="" /> --> </td> <td> <!--<img src="" /> --> </td> </tr> </tbody> </table> </details> <details> <summary>Android</summary> <table> <thead> <tr> <td>Before</td> <td>After</td> </tr> </thead> <tbody> <tr> <td> <!--<img src="" /> --> </td> <td> <!--<img src="" /> --> </td> </tr> </tbody> </table> </details> ## π§ͺ Testing - Unit tests cover the footer mark, with no mark before a play or without the `played` mark type, "Played" in a direct message, the count and 99+ in a channel, a mark that arrives live, and the mark-only row on an earlier message in a group. - Player tests cover calling `onPlaybackStarted` once on the first progress, asking again until it returns `true`, nothing while paused, an autoplaying video only once it advances, Expo's `progress`, and the callback on a reused player. Gallery video tests render the gallery with a real pool and cover autoplay playing only the shown video, moving to another slide pausing it and playing the new one, no autoplay without `autoPlayVideo`, marking the shown video, a handler from `ChatConfigProvider` deciding, and nothing without a channel. `AudioAttachment` tests render it in a `Channel`: a press alone does not mark, the first progress does, a preview never does, and a configured handler decides. `useMarkMessagePlayed` has its own tests. - Tested in the SampleApp on the iOS simulator against the `stream-chat` branch. As the author, in a direct message, no mark before a play, then "Played" alone under the earlier voice note and "Played Β· β time" on the last message, both live and after a reload. As the recipient, playing a voice note and playing a video in the gallery each wrote the mark only once playback started, and the author saw "Played Β· ββ time" under the video. Rechecked after moving the override to `ChatConfigProvider`. With autoplay on and a message with two videos, logging each slide's progress showed the off-screen slide playing alongside the shown one before the fix, and only the shown slide playing after it, opening either slide. Moving between slides, a custom `handlePlaybackStarted` and "Played by" with a count are covered by the unit tests only. - Store tests run against real SQLite: a message's markers are stored and read back newest first with their users, filtered by type and limited, an updated message adds its new markers, the marks are deleted with their message, a thread reply stores none, `mark_groups` lives in its column and not in `extraData` and reads back, and `insertMessageMark` stores the mark, its user and the columns without touching the rest of the message, stores the user's own mark on another user's message, and skips a message the database never held without aborting the rest of the batch. - Offline mark lists ran on the Android emulator with a "Played by" sheet over 30 throwaway members: a list opened in airplane mode came from the stored marks with names and stopped at its page size without retrying, a mark added on the server while offline appeared at the top after the reconnect, and the list then paged to all 31. A live mark with the channel open landed as its row, its user and the updated `markGroups`, with `mark_groups` gone from `extraData`. The channel list still showed its cached channels on an offline cold start. - With the synced tokens and the avatar change, typecheck and lint are clean and the full unit suite passes. The `MessageSystem`, `TypingIndicator`, `MessageAuthor` and `Thread` snapshots are updated for the token references and the avatar colour. ## βοΈ Checklist - [x] I have signed the [Stream CLA](https://docs.google.com/forms/d/e/1FAIpQLScFKsKkAJI7mhCr7K9rEIOpqIDThrWxuvxnwUq2XkHyG154vQ/viewform) (required) - [x] PR targets the `develop` branch - [ ] Documentation is updated - [ ] New code is tested in main example apps, including all possible scenarios - [ ] SampleApp iOS and Android - [ ] Expo iOS and Android
Next releasesv10.3.010.3.0 (2026-11-25)Features
sampleapp@v5.3.05.3.0 (2026-11-25)Features
|
oliverlaz
approved these changes
Nov 25, 2026
SDK Size
|
|
π This PR is included in version 10.3.0 π The release is available on:
Your semantic-release bot π¦π |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
π― Goal
π Implementation details
π¨ UI Changes
iOS
Android
π§ͺ Testing
βοΈ Checklist
developbranch