Update tests based on new js-sdk changes

(no more legacy notify event)
This commit is contained in:
Timo K
2026-01-27 16:49:25 +01:00
parent 15c39372f4
commit c1b2346e22
3 changed files with 11 additions and 22 deletions

View File

@@ -140,9 +140,9 @@ export function createCallNotificationLifecycle$({
scope.behavior(
sentCallNotification$.pipe(
filter(
(newAndLegacyEvents) =>
(notificationEventArgs) =>
// only care about new events (legacy do not have decline pattern)
newAndLegacyEvents?.[0].notification_type === "ring",
notificationEventArgs?.[0].notification_type === "ring",
),
map((e) => e as CallNotificationWrapper),
switchMap(([notificationEvent]) => {