Skip to content

Commit b7531d9

Browse files
committed
rename
1 parent cc994a8 commit b7531d9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

apps/mobile/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { useSheet } from "react-native-sheet-transitions"
77
import { useIntentHandler } from "./hooks/useIntentHandler"
88
import { DebugButton, EnvProfileIndicator } from "./modules/debug"
99
import { usePrefetchActions } from "./store/action/hooks"
10-
import { useMessaging, useMessagingToken } from "./store/messaging/hooks"
10+
import { useMessaging, useUpdateMessagingToken } from "./store/messaging/hooks"
1111
import { useUnreadCountBadge } from "./store/unread/hooks"
1212
import { useOnboarding, usePrefetchSessionUser } from "./store/user/hooks"
1313

@@ -18,7 +18,7 @@ export function App({ children }: { children: React.ReactNode }) {
1818

1919
// prefetch actions to detect if the user has any actions contains notifications
2020
usePrefetchActions()
21-
useMessagingToken()
21+
useUpdateMessagingToken()
2222
useMessaging()
2323
const { scale } = useSheet()
2424

apps/mobile/src/store/messaging/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async function saveMessagingToken() {
3030
kv.set(FIREBASE_MESSAGING_TOKEN_STORAGE_KEY, token)
3131
}
3232

33-
export function useMessagingToken() {
33+
export function useUpdateMessagingToken() {
3434
const whoami = useWhoami()
3535
const hasNotificationActions = useHasNotificationActions()
3636
const { mutate } = useMutation({

0 commit comments

Comments
 (0)