feat: restore Desktop window on incoming voice calls
Approval required
FA
1mo ago+8+8+0123456789-0-0-0123456789
Proposed changes (including videos or screenshots)
When a voice call comes in while the Desktop app is minimized, the OS notification alone is easy to miss. This sets the new restoreWindow flag on the incoming call desktop notification so the Desktop app restores and focuses its window.
restoreWindow?: booleanadded toCustomNotificationOptionsin@rocket.chat/desktop-apiuseDesktopNotifications(ui-voip) sendsrestoreWindow: truefor incoming calls- Changeset included
The flag is opt-in and ignored by Desktop versions that don't support it, so there is no behavior change for older clients.
Issue(s)
Depends on RocketChat/Rocket.Chat.Electron#3501, which implements restoreWindow in the Desktop app.
Steps to test or reproduce
- Run the Desktop app with RocketChat/Rocket.Chat.Electron#3501
- Minimize the Desktop window
- Receive an incoming voice call from another user
- The window is restored and focused alongside the incoming call notification
Further comments
Lint/unit tests were not run locally for this repo (local Node version differs from the one required); relying on CI.
š¤ Generated with Claude Code
Summary by CodeRabbit
- New Features
- Incoming voice call notifications now restore the minimized desktop app window, making calls more visible and accessible.
- Desktop notifications support an option to restore the application window when displayed.