fix(voip): gate MediaCallHeader to authenticated inside root only#7286
fix(voip): gate MediaCallHeader to authenticated inside root only#7286diegolmello wants to merge 1 commit into
Conversation
Mount MediaCallHeader exclusively when the app root is ROOT_INSIDE, preventing a coloured safe-area strip from appearing on login, share extension, and loading screens. Also removes the empty-View no-call fallback (returns null instead) and cleans up the dead addExtraNotchPadding prop from the Header chain.
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (6)
💤 Files with no reviewable changes (1)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
🧰 Additional context used📓 Path-based instructions (5)**/*.{js,ts,jsx,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.{ts,tsx}📄 CodeRabbit inference engine (AGENTS.md)
Files:
**/*.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
app/AppContainer.tsx📄 CodeRabbit inference engine (CLAUDE.md)
Files:
app/containers/**/*.{ts,tsx}📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧠 Learnings (12)📓 Common learnings📚 Learning: 2026-04-22T22:57:58.545ZApplied to files:
📚 Learning: 2026-04-22T22:57:58.545ZApplied to files:
📚 Learning: 2026-04-22T22:57:58.545ZApplied to files:
📚 Learning: 2026-03-10T15:21:45.098ZApplied to files:
📚 Learning: 2026-04-22T22:57:58.545ZApplied to files:
📚 Learning: 2026-04-30T17:07:51.020ZApplied to files:
📚 Learning: 2026-04-22T22:57:58.545ZApplied to files:
📚 Learning: 2026-04-22T22:57:58.545ZApplied to files:
📚 Learning: 2026-04-22T22:57:58.545ZApplied to files:
📚 Learning: 2026-04-22T22:57:58.545ZApplied to files:
📚 Learning: 2026-04-22T22:57:58.545ZApplied to files:
🔇 Additional comments (5)
WalkthroughThe changes modify conditional rendering of Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~15 minutes Suggested labels
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 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. Review rate limit: 2/8 reviews remaining, refill in 40 minutes and 52 seconds.Comment |
| return ( | ||
| <> | ||
| <MediaCallHeader /> | ||
| {root === RootEnum.ROOT_INSIDE ? <MediaCallHeader /> : null} |

Proposed changes
MediaCallHeaderwas mounted unconditionally at the application root, alongside theNavigationContainer. Because its no-active-call branch returned a styled emptyView(height equal to the safe-area top inset, colouredsurfaceNeutral) instead ofnull, the header occupied vertical space on every screen — including the login screen, share extension, and loading splash — producing a visible coloured strip above each of those screens' content.Issue(s)
Part of the PR #6918 fix set — module 4, blocker B8.
How to test or reproduce
Screenshots
N/A — visual regression fix; before/after comparison via manual testing on device.
Types of changes
Checklist
Further comments
Three changes in this slice:
app/AppContainer.tsx):<MediaCallHeader />is now wrapped in{root === RootEnum.ROOT_INSIDE ? <MediaCallHeader /> : null}so it only mounts for the authenticated inside root.app/containers/MediaCallHeader/MediaCallHeader.tsx): The empty<View>placeholder is replaced withnull. TheViewimport is also removed.app/containers/Header/index.tsx,app/containers/Header/components/HeaderContainer/index.tsx):addExtraNotchPaddingwas declared in theIHeaderContainerinterface but never consumed in the component body; it is now removed from both the interface and the call site.A new
app/AppContainer.test.tsxasserts thatMediaCallHeaderis present in the inside tree and absent for all other roots (loading, outside, set-username, share extension, loading-share-extension).Summary by CodeRabbit
Release Notes
Bug Fixes
Tests