Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3249212
D12599.id42168.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
D12599.id42168.diff
View Options
diff --git a/lib/shared/redux/update-roles-and-permissions.js b/lib/shared/redux/deprecated-update-roles-and-permissions.js
rename from lib/shared/redux/update-roles-and-permissions.js
rename to lib/shared/redux/deprecated-update-roles-and-permissions.js
--- a/lib/shared/redux/update-roles-and-permissions.js
+++ b/lib/shared/redux/deprecated-update-roles-and-permissions.js
@@ -11,7 +11,7 @@
LegacyRawThreadInfo,
} from '../../types/thread-types.js';
-function updateRolesAndPermissions(
+function deprecatedUpdateRolesAndPermissions(
threadStoreInfos: RawThreadInfos,
): RawThreadInfos {
const decodedThreadStoreInfos: { [id: string]: LegacyRawThreadInfo } = {};
@@ -44,4 +44,4 @@
return updatedThreadStoreInfos;
}
-export { updateRolesAndPermissions };
+export { deprecatedUpdateRolesAndPermissions };
diff --git a/native/redux/persist.js b/native/redux/persist.js
--- a/native/redux/persist.js
+++ b/native/redux/persist.js
@@ -61,7 +61,7 @@
import { highestLocalIDSelector } from 'lib/selectors/local-id-selectors.js';
import { createUpdateDBOpsForThreadStoreThreadInfos } from 'lib/shared/redux/client-db-utils.js';
import { legacyUpdateRolesAndPermissions } from 'lib/shared/redux/legacy-update-roles-and-permissions.js';
-import { updateRolesAndPermissions } from 'lib/shared/redux/update-roles-and-permissions.js';
+import { deprecatedUpdateRolesAndPermissions } from 'lib/shared/redux/deprecated-update-roles-and-permissions.js';
import { inconsistencyResponsesToReports } from 'lib/shared/report-utils.js';
import {
getContainingThreadID,
@@ -1394,7 +1394,7 @@
const dbOperations = createUpdateDBOpsForThreadStoreThreadInfos(
clientDBThreadInfos,
- updateRolesAndPermissions,
+ deprecatedUpdateRolesAndPermissions,
);
return {
diff --git a/web/redux/persist.js b/web/redux/persist.js
--- a/web/redux/persist.js
+++ b/web/redux/persist.js
@@ -19,7 +19,7 @@
import type { ClientDBThreadStoreOperation } from 'lib/ops/thread-store-ops.js';
import { patchRawThreadInfoWithSpecialRole } from 'lib/permissions/special-roles.js';
import { createUpdateDBOpsForThreadStoreThreadInfos } from 'lib/shared/redux/client-db-utils.js';
-import { updateRolesAndPermissions } from 'lib/shared/redux/update-roles-and-permissions.js';
+import { deprecatedUpdateRolesAndPermissions } from 'lib/shared/redux/deprecated-update-roles-and-permissions.js';
import { keyserverStoreTransform } from 'lib/shared/transforms/keyserver-store-transform.js';
import { messageStoreMessagesBlocklistTransform } from 'lib/shared/transforms/message-store-transform.js';
import { defaultAlertInfos } from 'lib/types/alert-types.js';
@@ -591,7 +591,7 @@
const dbOperations = createUpdateDBOpsForThreadStoreThreadInfos(
clientDBThreadInfos,
- updateRolesAndPermissions,
+ deprecatedUpdateRolesAndPermissions,
);
return {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 12:41 PM (21 h, 9 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2497904
Default Alt Text
D12599.id42168.diff (2 KB)
Attached To
Mode
D12599: [lib] Deprecate `updateRolesAndPermissions`
Attached
Detach File
Event Timeline
Log In to Comment