mirror of
https://github.com/hanzo-io/chat.git
synced 2026-10-30 18:57:58 +00:00
* feat(mobile): add and remove channel members * feat(mobile): add channel settings - archive, delete and change channel type * feat(mobile): view channel members in a scroll view * feat(mobile): edit channel name and description functionality * feat(mobile): added modal for channel info and updated styles for channel header --------- Co-authored-by: pranavmene2000 <[email protected]> Co-authored-by: Pranav Mene <[email protected]> Co-authored-by: Janhvi Patil <[email protected]>
16 lines
441 B
TypeScript
16 lines
441 B
TypeScript
import { useFrappeGetCall } from 'frappe-react-sdk'
|
|
|
|
const useIsPushNotificationEnabled = () => {
|
|
|
|
const { data } = useFrappeGetCall<{ message: boolean }>('raven.api.notification.are_push_notifications_enabled', undefined, undefined, {
|
|
revalidateIfStale: true,
|
|
revalidateOnFocus: false,
|
|
revalidateOnReconnect: false,
|
|
})
|
|
|
|
return data?.message ? true : false
|
|
}
|
|
|
|
export default useIsPushNotificationEnabled
|
|
|