Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3519379
D14049.id46197.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D14049.id46197.diff
View Options
diff --git a/lib/types/backup-types.js b/lib/types/backup-types.js
--- a/lib/types/backup-types.js
+++ b/lib/types/backup-types.js
@@ -49,3 +49,12 @@
pickledAccount: t.String,
},
);
+
+type LocalLatestBackupInfo = {
+ +backupID: string,
+ +timestamp: number,
+};
+
+export type BackupStore = {
+ +latestBackupInfo: ?LocalLatestBackupInfo,
+};
diff --git a/native/redux/default-state.js b/native/redux/default-state.js
--- a/native/redux/default-state.js
+++ b/native/redux/default-state.js
@@ -107,6 +107,9 @@
holderStore: {
storedHolders: {},
},
+ backupStore: {
+ latestBackupInfo: null,
+ },
}: AppState);
export { defaultState };
diff --git a/native/redux/state-types.js b/native/redux/state-types.js
--- a/native/redux/state-types.js
+++ b/native/redux/state-types.js
@@ -5,6 +5,7 @@
import type { AlertStore } from 'lib/types/alert-types.js';
import type { AuxUserStore } from 'lib/types/aux-user-types.js';
+import type { BackupStore } from 'lib/types/backup-types.js';
import type { CommunityStore } from 'lib/types/community-types.js';
import type { DBOpsStore } from 'lib/types/db-ops-types';
import type { QueuedDMOperations } from 'lib/types/dm-ops';
@@ -88,6 +89,7 @@
+tunnelbrokerDeviceToken: TunnelbrokerDeviceToken,
+queuedDMOperations: QueuedDMOperations,
+holderStore: HolderStore,
+ +backupStore: BackupStore,
};
export { nonUserSpecificFieldsNative };
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Dec 23, 9:58 PM (15 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2696775
Default Alt Text
D14049.id46197.diff (1 KB)
Attached To
Mode
D14049: [lib][web][native] Redux store to persist latest backup info
Attached
Detach File
Event Timeline
Log In to Comment