diff options
author | Samuel Newman <mozzius@protonmail.com> | 2025-08-04 19:41:09 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-04 09:41:09 -0700 |
commit | 15bc77321b99e758e3a4f43e0699ea0da4440488 (patch) | |
tree | bf5a75c8d971388c5d135ff1ca07f1225d7bedd7 /src/lib/hooks/useNotificationHandler.ts | |
parent | 7b5d11eb80f247173a11c37a6f1bb08824912a54 (diff) | |
download | voidsky-15bc77321b99e758e3a4f43e0699ea0da4440488.tar.zst |
Fix android starting at notif screen (#8775)
* fix android launching at notif screen * rm heuristic
Diffstat (limited to 'src/lib/hooks/useNotificationHandler.ts')
-rw-r--r-- | src/lib/hooks/useNotificationHandler.ts | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/hooks/useNotificationHandler.ts b/src/lib/hooks/useNotificationHandler.ts index ddee11fb5..3370a7208 100644 --- a/src/lib/hooks/useNotificationHandler.ts +++ b/src/lib/hooks/useNotificationHandler.ts @@ -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 } } |