Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3367803
D13502.id44639.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
D13502.id44639.diff
View Options
diff --git a/lib/shared/updates/delete-account-spec.js b/lib/shared/updates/delete-account-spec.js
--- a/lib/shared/updates/delete-account-spec.js
+++ b/lib/shared/updates/delete-account-spec.js
@@ -10,7 +10,6 @@
AccountDeletionUpdateData,
AccountDeletionUpdateInfo,
} from '../../types/update-types.js';
-import type { UserInfos } from '../../types/user-types.js';
import { tNumber, tShape, tUserID } from '../../utils/validation-utils.js';
export const deleteAccountSpec: UpdateSpec<
@@ -60,14 +59,6 @@
}
return operations;
},
- reduceUserInfos(state: UserInfos, update: AccountDeletionUpdateInfo) {
- const { deletedUserID } = update;
- if (!state[deletedUserID]) {
- return state;
- }
- const { [deletedUserID]: deleted, ...rest } = state;
- return rest;
- },
rawUpdateInfoFromRow(row: Object) {
const content = JSON.parse(row.content);
return {
diff --git a/lib/shared/updates/update-spec.js b/lib/shared/updates/update-spec.js
--- a/lib/shared/updates/update-spec.js
+++ b/lib/shared/updates/update-spec.js
@@ -71,7 +71,6 @@
state: ?CurrentUserInfo,
update: UpdateInfo,
) => ?CurrentUserInfo,
- +reduceUserInfos?: (state: UserInfos, update: UpdateInfo) => UserInfos,
+reduceCalendarThreadFilters?: (
filteredThreadIDs: $ReadOnlySet<string>,
update: UpdateInfo,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Nov 26, 4:27 PM (21 h, 50 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2585001
Default Alt Text
D13502.id44639.diff (1 KB)
Attached To
Mode
D13502: [lib] Remove dangling reduceUserInfos function from update specs
Attached
Detach File
Event Timeline
Log In to Comment