Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3401597
D11421.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
D11421.diff
View Options
diff --git a/lib/actions/synced-metadata-actions.js b/lib/actions/synced-metadata-actions.js
new file mode 100644
--- /dev/null
+++ b/lib/actions/synced-metadata-actions.js
@@ -0,0 +1,10 @@
+// @flow
+
+const addSyncedMetadataEntryActionType = 'ADD_SYNCED_METADATA_ENTRY';
+
+const removeSyncedMetadataEntryActionType = 'REMOVE_SYNCED_METADATA_ENTRY';
+
+export {
+ addSyncedMetadataEntryActionType,
+ removeSyncedMetadataEntryActionType,
+};
diff --git a/lib/types/redux-types.js b/lib/types/redux-types.js
--- a/lib/types/redux-types.js
+++ b/lib/types/redux-types.js
@@ -108,6 +108,10 @@
} from './socket-types.js';
import { type ClientStore } from './store-ops-types.js';
import type { SubscriptionUpdateResult } from './subscription-types.js';
+import type {
+ AddSyncedMetadataEntryPayload,
+ RemoveSyncedMetadataEntryPayload,
+} from './synced-metadata-types.js';
import type { GlobalThemeInfo } from './theme-types.js';
import type { ThreadActivityStore } from './thread-activity-types.js';
import type {
@@ -1362,6 +1366,14 @@
+type: 'ADD_COMMUNITY',
+payload: AddCommunityPayload,
}
+ | {
+ +type: 'ADD_SYNCED_METADATA_ENTRY',
+ +payload: AddSyncedMetadataEntryPayload,
+ }
+ | {
+ +type: 'REMOVE_SYNCED_METADATA_ENTRY',
+ +payload: RemoveSyncedMetadataEntryPayload,
+ }
| {
+type: 'SET_ACTIVE_SESSION_RECOVERY',
+payload: SetActiveSessionRecoveryPayload,
diff --git a/lib/types/synced-metadata-types.js b/lib/types/synced-metadata-types.js
--- a/lib/types/synced-metadata-types.js
+++ b/lib/types/synced-metadata-types.js
@@ -5,3 +5,12 @@
export type SyncedMetadataStore = {
+syncedMetadata: SyncedMetadata,
};
+
+export type AddSyncedMetadataEntryPayload = {
+ +name: string,
+ +data: string,
+};
+
+export type RemoveSyncedMetadataEntryPayload = {
+ +name: string,
+};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 3, 12:56 PM (21 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2611745
Default Alt Text
D11421.diff (1 KB)
Attached To
Mode
D11421: [lib] introduce sync metadata add and remove action types
Attached
Detach File
Event Timeline
Log In to Comment