diff --git a/lib/actions/community-actions.js b/lib/actions/community-actions.js --- a/lib/actions/community-actions.js +++ b/lib/actions/community-actions.js @@ -1,6 +1,16 @@ // @flow -export const updateCalendarCommunityFilter = 'UPDATE_CALENDAR_COMMUNITY_FILTER'; -export const clearCalendarCommunityFilter = 'CLEAR_CALENDAR_COMMUNITY_FILTER'; -export const updateChatCommunityFilter = 'UPDATE_CHAT_COMMUNITY_FILTER'; -export const clearChatCommunityFilter = 'CLEAR_CHAT_COMMUNITY_FILTER'; +const updateCalendarCommunityFilter = 'UPDATE_CALENDAR_COMMUNITY_FILTER'; +const clearCalendarCommunityFilter = 'CLEAR_CALENDAR_COMMUNITY_FILTER'; +const updateChatCommunityFilter = 'UPDATE_CHAT_COMMUNITY_FILTER'; +const clearChatCommunityFilter = 'CLEAR_CHAT_COMMUNITY_FILTER'; + +const addCommunityActionType = 'ADD_COMMUNITY'; + +export { + updateCalendarCommunityFilter, + clearCalendarCommunityFilter, + updateChatCommunityFilter, + clearChatCommunityFilter, + addCommunityActionType, +}; diff --git a/lib/types/community-types.js b/lib/types/community-types.js --- a/lib/types/community-types.js +++ b/lib/types/community-types.js @@ -11,3 +11,8 @@ export type CommunityStore = { +communityInfos: CommunityInfos, }; + +export type AddCommunityPayload = { + +id: string, + +newCommunityInfo: CommunityInfo, +}; 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 @@ -19,6 +19,7 @@ UpdateUserAvatarRequest, UpdateUserAvatarResponse, } from './avatar-types.js'; +import type { AddCommunityPayload } from './community-types.js'; import type { CryptoStore } from './crypto-types.js'; import type { GetVersionActionPayload, @@ -1360,6 +1361,10 @@ | { +type: 'SET_SESSION_RECOVERY_IN_PROGRESS', +payload: { +sessionRecoveryInProgress: boolean, +keyserverID: string }, + } + | { + +type: 'ADD_COMMUNITY', + +payload: AddCommunityPayload, }; export type ActionPayload = ?(Object | Array<*> | $ReadOnlyArray<*> | string);