You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The changes add a new optional team field to the MessageReadEvent data class, extending both the DTO and domain event models. The field is propagated through mapping logic, test utilities, and test cases to maintain consistency across the Android SDK.
Changes
Cohort / File(s)
Summary
Core Event Model Changes stream-chat-android-client/src/main/java/io/getstream/chat/android/client/api2/model/dto/EventDtos.kt, stream-chat-android-client/src/main/java/io/getstream/chat/android/client/events/ChatEvent.kt
Added optional team: String? = null field to MessageReadEventDto and MessageReadEvent data classes
Updated domain event transformation to map team from DTO to MessageReadEvent constructor
API Surface stream-chat-android-client/api/stream-chat-android-client.api
Updated public API signatures: constructor, synthetic constructor, component10 method, copy and copy\$default methods, and added getTeam() accessor
Test Infrastructure stream-chat-android-client-test/src/main/java/io/getstream/chat/android/client/test/Mother.kt
Added optional team: String? = null parameter to randomMessageReadEvent() factory function
Test Arguments & Mappings stream-chat-android-client/src/test/java/io/getstream/chat/android/client/api2/mapping/EventMappingTestArguments.kt, stream-chat-android-client/src/test/java/io/getstream/chat/android/client/parser/EventArguments.kt
Updated test DTO/domain event mappings to include team field initialization
Test Cases stream-chat-android-state/src/test/java/io/getstream/chat/android/state/plugin/logic/channel/internal/ChannelEventHandlerTest.kt, stream-chat-android-state/src/test/java/io/getstream/chat/android/state/plugin/logic/querythreads/internal/QueryThreadsLogicTest.kt
Updated MessageReadEvent instantiations to include team = null parameter
Estimated code review effort
🎯 2 (Simple) | ⏱️ ~10 minutes
Poem
🐰 A team field hops in with grace,
Across the codebase, finding its place,
From DTO to domain so fine,
Tests aligned, all in line,
MessageReadEvent shines anew! ✨
Docstring coverage is 20.00% which is insufficient. The required threshold is 80.00%.
Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name
Status
Explanation
Title check
✅ Passed
The title accurately and concisely describes the main change: exposing the team property on the message.read event.
Description check
✅ Passed
The description covers the goal, implementation details, and testing approach, but is missing changelog confirmation, unit test coverage details, and several checklist items.
Linked Issues check
✅ Passed
The PR successfully exposes the team field on MessageReadEvent across DTO, domain model, mapping, and test files, directly addressing AND-1025's requirement.
Out of Scope Changes check
✅ Passed
All changes are directly related to exposing the team field on MessageReadEvent; no unrelated modifications detected in the changeset.
✏️ Tip: You can configure your own custom pre-merge checks in the settings.
✨ Finishing touches
📝 Generate docstrings
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
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
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
Exposes the
teamfield on theMessageReadevent.Resolves: https://linear.app/stream/issue/AND-1025
🛠 Implementation details
Update the DTO and domain models for the
message.readevent to include theteam.🎨 UI Changes
NA
🧪 Testing
In a multi-tenant app, subscribe for
MessageReadEvents. Observe the fieldteam-> it should be populated with the team ID of the channel.Summary by CodeRabbit
Release Notes
✏️ Tip: You can customize this high-level summary in your review settings.