Incoming Element Calls now trigger a regular OS notification (#33499)

* Fix missing OS-level desktop notification for Element Call (MSC4075)

* Add Unit-test for textForCallInviteEvent and lint fixes

* Refactor call invite notification

* prettier fix

* Added mock supportsVoip for notifier-test
This commit is contained in:
İsmail Özsoy
2026-05-15 11:07:08 +00:00
committed by GitHub
parent d5a0ac6014
commit c5a2109ef5
3 changed files with 85 additions and 17 deletions
@@ -131,6 +131,9 @@ describe("Notifier", () => {
decryptEventIfNeeded: jest.fn(),
getRoom: jest.fn(),
getPushActionsForEvent: jest.fn(),
// Mock required because TextForEvent now evaluates supportsVoip for RTCNotification to trigger OS popups.
// The true/false value is arbitrary here, as this test only verifies the in-app toast creation, not the OS text output.
supportsVoip: jest.fn().mockReturnValue(true),
supportsThreads: jest.fn().mockReturnValue(false),
matrixRTC: {
on: jest.fn(),