diff --git a/lib/actions/client-db-store-actions.js b/lib/actions/client-db-store-actions.js new file mode 100644 --- /dev/null +++ b/lib/actions/client-db-store-actions.js @@ -0,0 +1,5 @@ +// @flow + +const setClientDBStoreActionType = 'SET_CLIENT_DB_STORE'; + +export { setClientDBStoreActionType }; 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 @@ -556,6 +556,15 @@ +type: 'SET_DRAFT_STORE_DRAFTS', +payload: $ReadOnlyArray<{ +key: string, +text: string }>, } + | { + +type: 'SET_CLIENT_DB_STORE', + +payload: { + +currentUserID: ?string, + +drafts: $ReadOnlyArray<{ +key: string, +text: string }>, + +messages: $ReadOnlyArray, + +threadStore: ThreadStore, + }, + } | { +type: 'UPDATE_ACTIVITY_STARTED', +payload?: void,