From 5eade30b2f0c224f9af6be076e15d0f78198cabe Mon Sep 17 00:00:00 2001 From: fkwp Date: Wed, 4 Dec 2024 13:47:12 +0100 Subject: [PATCH] increase max age of incoming notify event to 15 seconds which triggers a call ringingn notification/toast --- src/Notifier.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Notifier.ts b/src/Notifier.ts index 14869dc0fdf..c724c4780cd 100644 --- a/src/Notifier.ts +++ b/src/Notifier.ts @@ -498,7 +498,8 @@ class NotifierClass extends TypedEventEmitter m.sender === cli.getUserId()); - if (EventType.CallNotify === ev.getType() && (ev.getAge() ?? 0) < 90000 && !thisUserHasConnectedDevice) { + // Check maximum age (<= 15 seconds) of a call notify event that will trigger a ringing notification + if (EventType.CallNotify === ev.getType() && (ev.getAge() ?? 0) < 15000 && !thisUserHasConnectedDevice) { const content = ev.getContent(); const roomId = ev.getRoomId(); if (typeof content.call_id !== "string") {