Skip to content

Conversation

@VelikovPetar
Copy link
Contributor

🎯 Goal

We are wrongly considering thread replies for calculating the last channel message (when channel is read from DB, before it is loaded from BE). This PR excludes thread replies from the last channel message calculation.

🛠 Implementation details

  • Exclude thread replies from the last channel message calculation.

🎨 UI Changes

Before After
before.mp4
after.mp4

🧪 Testing

  1. Enter a channel (not the one on the top, it should be a channel lower in the list)
  2. Write a message
  3. Then write a thread reply
  4. Kill the app
  5. Open the app again
  6. There should be no re-ordering of the channels

@VelikovPetar VelikovPetar marked this pull request as ready for review November 19, 2025 12:16
@VelikovPetar VelikovPetar requested a review from a team as a code owner November 19, 2025 12:16
@github-actions
Copy link
Contributor

github-actions bot commented Nov 19, 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.47 MB 5.47 MB 0.00 MB 🟢
stream-chat-android-ui-components 10.58 MB 10.58 MB 0.00 MB 🟢
stream-chat-android-compose 12.81 MB 12.81 MB 0.00 MB 🟢

@sonarqubecloud
Copy link

@andremion andremion merged commit a20259f into develop Nov 19, 2025
13 checks passed
@andremion andremion deleted the bug/AND-883_fix_wrong_channel_ordering_when_offline branch November 19, 2025 14:50
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