Fix android starting at notif screen (#8775)

* fix android launching at notif screen

* rm heuristic
This commit is contained in:
Samuel Newman
2025-08-04 19:41:09 +03:00
committed by GitHub
parent 7b5d11eb80
commit 15bc77321b
+5 -5
View File
@@ -400,9 +400,7 @@ export function getNotificationPayload(
}
}
export function notificationToURL(
payload: NotificationPayload,
): string | undefined {
export function notificationToURL(payload: NotificationPayload): string | null {
switch (payload?.reason) {
case 'like':
case 'repost':
@@ -433,10 +431,12 @@ export function notificationToURL(
}
case 'chat-message':
// should be handled separately
return undefined
return null
case 'verified':
case 'unverified':
default:
return '/notifications'
default:
// do nothing if we don't know what to do with it
return null
}
}