Skip to content

Conversation

@VelikovPetar
Copy link
Contributor

@VelikovPetar VelikovPetar commented Nov 24, 2025

🎯 Goal

Allow customers to opt-out of the automatic sync process when connecting/reconnecting. The drawback is that they will need to manually query/watch the relevant Channels.
Docs PR: https://github.com/GetStream/docs-content/pull/788

🛠 Implementation details

  1. Add StatePluginConfig.isAutomaticSyncOnReconnectEnabled flag
  2. Skip calling /sync endpoint and QueryChannels/WatchChannel from the SyncManager if StatePluginConfig.isAutomaticSyncOnReconnectEnabled = false

🎨 UI Changes

NA

🧪 Testing

  1. Set StatePluginConfig.isAutomaticSyncOnReconnectEnabled = false
  2. Put app in background
  3. Restore app
  4. No /sync or /channels calls should be made upon restoring the app

@github-actions
Copy link
Contributor

github-actions bot commented Nov 24, 2025

SDK Size Comparison 📏

SDK Before After Difference Status
stream-chat-android-client 5.25 MB 5.25 MB 0.00 MB 🟢
stream-chat-android-offline 5.48 MB 5.48 MB 0.00 MB 🟢
stream-chat-android-ui-components 10.59 MB 10.59 MB 0.00 MB 🟢
stream-chat-android-compose 12.81 MB 12.81 MB 0.00 MB 🟢

@VelikovPetar VelikovPetar marked this pull request as ready for review November 24, 2025 16:40
@VelikovPetar VelikovPetar requested a review from a team as a code owner November 24, 2025 16:40
@sonarqubecloud
Copy link

@VelikovPetar VelikovPetar merged commit 316da12 into develop Nov 28, 2025
17 of 18 checks passed
@VelikovPetar VelikovPetar deleted the feature/AND-918_add_is_automatic_sync_on_reconnect_enabled branch November 28, 2025 15:08
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.

3 participants