Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3400826
D11165.id37573.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D11165.id37573.diff
View Options
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);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 3, 9:05 AM (20 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2611115
Default Alt Text
D11165.id37573.diff (2 KB)
Attached To
Mode
D11165: [lib] introduce addCommunityActionType
Attached
Detach File
Event Timeline
Log In to Comment