getting file and all, now just need to sort of hand off to database and write to the right places

This commit is contained in:
Arjun Patel
2022-02-05 14:53:42 -08:00
parent be28e6dc88
commit e92a54623c
5 changed files with 115 additions and 15 deletions
+10 -2
View File
@@ -43,6 +43,9 @@ export enum RecoilActions {
COUNT_DEFAULT_CONVOS_SELECTOR = "COUNT_DEFAULT_CONVOS_SELECTOR",
COUNT_NAVIGATION_ITEMS = "COUNT_NAVIGATION_ITEMS",
IS_RECORDING_ATOM = "IS_RECORDING_ATOM",
HAS_MIC_PERMISSIONS = "HAS_MIC_PERMISSIONS",
}
export const nirvanaUserDataAtom = atom<NirvanaUser | null>({
@@ -378,8 +381,8 @@ export const allRelevantContactsAtom = atom<Map<string, NirvanaUser>>({
// and return their full information...either get from cache if there or fetch from database if not and update cache
// RECORDING, SHORTCUTS, PLAYING, MIC, HEADPHONES, etc.
export const isRecording = atom<boolean>({
key: "haha",
export const isRecordingAtom = atom<boolean>({
key: RecoilActions.IS_RECORDING_ATOM,
default: false,
});
@@ -388,3 +391,8 @@ export const selectedPriorityConvoAtom = atom<string | null>({
key: RecoilActions.SELECTED_CONVERSATION_ATOM,
default: null,
});
export const hasMicPermissionsAtom = atom<boolean>({
key: RecoilActions.HAS_MIC_PERMISSIONS,
default: false,
});