Repository navigation
Show other members' active live locations when a channel loads - #6750
Conversation
…the channel state flows
PR checklist ✅All required conditions are satisfied:
🎉 Great job! This PR is ready for review. |
SDK Size Comparison 📏
|
|
Navigate logical layers of code changes, visualize relationships, and explore their blast radius. No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (12)
💤 Files with no reviewable changes (4)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. WalkthroughChannel responses now provide active live locations to domain channels. Channel state updates add those locations to global state. Parsing and state tests cover the response and update paths. ChangesActive live-location mapping
Priority: ➖ Normal Estimated code review effort: 2 (Simple) | ~12 minutes Change: Bug fix Merge Risk: ⚪ Minimal · up to This change loads other members' active live locations when a channel loads. No concrete merge-blocking risk was found in the supplied context. Security Architecture ReviewSecurity architecture risk: 🔵 Low · up to Channel loads now populate shared state with members’ live locations. A delayed response may make previously received coordinates appear active after sharing has ended. The identified exposure is limited to client-side state; request permissions are unchanged, and access by an unauthorized viewer has not been demonstrated. Retained concerns
Security review detailsSecurity Blast Radius
Security Findings and Attack Paths
Trust Boundaries and Controls
Resilience and Maintainability Implications
Hardening Proposals
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches 💡 2📝 Generate docstrings 💡
🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
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. A rabbit reads the channel stream, Comment |
andremion
left a comment
There was a problem hiding this comment.
Looks good. One optional question inline.
|
|
🚀 Available in v6.45.2 |


Goal
Channel.activeLiveLocationswas never populated from REST, so another member's active live location did not show when a channel or the channel list loaded, only after their next location update. The backend sendsactive_live_locationson the channel state, next tomessagesandmembers, but the SDK read it from the nestedchannelobject. Port of #6742 to v6.Closes AND-1576
Implementation
active_live_locationson the channel state response and map it onto the channel, for query channel, query channels and grouped channels. Drop the field from the nested channel DTO, where the backend never sends it.ChannelStateandQueryChannelsStateread their live locations from there.Testing
MoshiChatApiTestrows per path, and aChannelStateLogicTestcase checking a queried channel's live location reaches the global state.ChannelStateon channel load and in the channel list. Grouped channels is not available on the sample app, so it is covered by unit tests only.ChannelMapperTestcovers it too.🤖 Generated with Claude Code