Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3155885
D10733.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
D10733.diff
View Options
diff --git a/lib/utils/role-utils.js b/lib/utils/role-utils.js
--- a/lib/utils/role-utils.js
+++ b/lib/utils/role-utils.js
@@ -14,7 +14,6 @@
type ThreadRolePermissionsBlob,
type UserSurfacedPermission,
} from '../types/thread-permission-types.js';
-import type { LegacyRoleInfo } from '../types/thread-types';
import { threadTypes } from '../types/thread-types-enum.js';
function constructRoleDeletionMessagePrompt(
@@ -59,7 +58,7 @@
function useRolesFromCommunityThreadInfo(
threadInfo: ThreadInfo,
memberInfos: $ReadOnlyArray<RelativeMemberInfo>,
-): $ReadOnlyMap<string, ?LegacyRoleInfo | ?MinimallyEncodedRoleInfo> {
+): $ReadOnlyMap<string, ?MinimallyEncodedRoleInfo> {
// Our in-code system has chat-specific roles, while the
// user-surfaced system has roles only for communities. We retrieve roles
// from the top-level community thread for accuracy, with a rare fallback
@@ -74,10 +73,7 @@
community ? threadInfoSelector(state)[community] : null,
);
const topMostThreadInfo = communityThreadInfo || threadInfo;
- const roleMap = new Map<
- string,
- ?LegacyRoleInfo | ?MinimallyEncodedRoleInfo,
- >();
+ const roleMap = new Map<string, ?MinimallyEncodedRoleInfo>();
if (topMostThreadInfo.type === threadTypes.GENESIS) {
memberInfos.forEach(memberInfo =>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Nov 6, 11:49 AM (20 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2430854
Default Alt Text
D10733.diff (1 KB)
Attached To
Mode
D10733: [lib] Remove `LegacyRoleInfo` where possible in `lib`
Attached
Detach File
Event Timeline
Log In to Comment