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:
parent
63e9c65dd2
commit
cb16edbf37
1 changed files with 12 additions and 0 deletions
|
|
@ -366,6 +366,18 @@ export function usePushNotificationsLifecycle(): void {
|
|||
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));
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue