Repository navigation
fix: client crash due to incorrect toggle usage in notification settings - #24154
Conversation
Client is crashing when opening the notification settins panel in a LiveKit-enabled meeting. This is caused by a 3.0 -> 3.1 merge introducing the new "mute" notification option from 3.0 without porting the toggle usage to 3.1's variant. Fix the client crash by adjusting the mute notification setting to use 3.1's components. Additionally, remove the now unused FormElementCenter style from the settings submenus.
Automated tests Summary⏳ Tests are running... |
WalkthroughThis pull request removes the unused Sequence DiagramsequenceDiagram
participant User
participant NotificationUI as Notification Component
participant MaterialSwitch
participant State as Component State
User->>NotificationUI: Toggle audio alert
NotificationUI->>MaterialSwitch: checked={isMutedAudio}
activate MaterialSwitch
MaterialSwitch->>User: Render controlled switch
deactivate MaterialSwitch
User->>MaterialSwitch: Click switch
MaterialSwitch->>NotificationUI: onChange triggered
NotificationUI->>State: Update isMutedAudio state
State->>NotificationUI: State updated
NotificationUI->>MaterialSwitch: checked={newValue}
MaterialSwitch->>User: Display updated state
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (4)
💤 Files with no reviewable changes (3)
⏰ 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 comments (2)
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. Comment |
|



What does this PR do?
LiveKit-enabled meeting. This is caused by a 3.0 -> 3.1 merge
introducing the new "mute" notification option from 3.0 without
porting the toggle usage to 3.1's variant.
3.1's components. Additionally, remove the now unused FormElementCenter
style from the settings submenus.
Closes Issue(s)
Closes #24128