Repository navigation
Show other members' active live locations when a channel loads - #6742
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 (11)
💤 Files with no reviewable changes (2)
Included review availability: This review used your included allowance. Your plan provides up to 4 included reviews per hour; 3 remain after this review. WalkthroughThe API response model now carries ChangesActive Live Location Flow
Priority: ⬇️ Low Estimated code review effort: 2 (Simple) | ~10 minutes Change: Bug fix Suggested reviewers: Merge Risk: ⚪ Minimal · up to The change makes other members’ active live locations available when channels load. No actionable issue has been established that would prevent merging after normal checks. Security Architecture ReviewSecurity architecture risk: 🟡 Moderate · up to Live locations will become visible when channels load, as intended. A delayed channel response can also replace a newer location update, potentially leaving a stale position or sharing status visible until expiration. The server’s location-visibility rules could not be verified here. 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 💡 1📝 Generate docstrings 💡
🧪 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 checks the channel stream, Comment |
andremion
left a comment
There was a problem hiding this comment.
Looks good. One optional nit inline.
|
1 similar comment
|
|
🚀 Available in v7.13.0 |



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.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 state tests checking a queried channel exposes another member's location inChannelStateand 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.🤖 Generated with Claude Code
Summary by CodeRabbit