Page MenuHomePhabricator

D11421.diff
No OneTemporary

D11421.diff

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

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)

Event Timeline