dm calls mvp: phase 2.5.3: route call-notif FSI launch and body-tap to Direct tab instead of Home

This commit is contained in:
heaven 2026-04-20 22:24:07 +03:00
parent 63e9c65dd2
commit cb16edbf37

View file

@ -366,6 +366,18 @@ export function usePushNotificationsLifecycle(): void {
return; return;
} }
// FSI launch and body-tap on a call notification hit this path (no
// call_action extra, but notif_event_id is present — only call
// pushes carry it). DMs are currently the only call surface, so
// route to the Direct tab instead of the Home-tab fallback.
// Caveat: if group-call push is ever added, those events will also
// carry notif_event_id and this branch will route them to the DM
// tab incorrectly — revisit together with the group-call pipeline.
if (data.room_id && data.notif_event_id) {
navigate(getDirectRoomPath(data.room_id));
return;
}
if (data.room_id) navigate(getHomeRoomPath(data.room_id)); if (data.room_id) navigate(getHomeRoomPath(data.room_id));
} }
); );