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:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user