mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
chore: self UUID namespace as a const (#1685)
This commit is contained in:
committed by
GitHub
parent
2fd8d18107
commit
2ebf7918c7
@@ -3,7 +3,6 @@
|
||||
// NOTE: Converts to Apache-2.0 on 2029-06-11 per LICENSE.
|
||||
|
||||
import { PermissionsAndroid, Platform } from 'react-native';
|
||||
import { SELF_UUID_NAMESPACE } from '@env';
|
||||
import type { FirebaseMessagingTypes } from '@react-native-firebase/messaging';
|
||||
import messaging from '@react-native-firebase/messaging';
|
||||
|
||||
@@ -15,6 +14,8 @@ import {
|
||||
} from '@/services/notifications/notificationService.shared';
|
||||
import { useSettingStore } from '@/stores/settingStore';
|
||||
|
||||
export const SELF_UUID_NAMESPACE = '00000000-0000-8000-8000-531f00000000';
|
||||
|
||||
export async function getFCMToken(): Promise<string | null> {
|
||||
try {
|
||||
const token = await messaging().getToken();
|
||||
@@ -37,10 +38,6 @@ const error = (...args: unknown[]) => {
|
||||
if (!isTestEnv) console.error(...args);
|
||||
};
|
||||
|
||||
export function getSelfUuidNamespace(): string {
|
||||
return SELF_UUID_NAMESPACE ?? '';
|
||||
}
|
||||
|
||||
export { getStateMessage };
|
||||
|
||||
export async function isNotificationSystemReady(): Promise<{
|
||||
|
||||
Reference in New Issue
Block a user