Page MenuHomePhabricator

D13502.id44639.diff
No OneTemporary

D13502.id44639.diff

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

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)

Event Timeline