Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3362024
D11288.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
878 B
Referenced Files
None
Subscribers
None
D11288.diff
View Options
diff --git a/lib/shared/thread-utils.js b/lib/shared/thread-utils.js
--- a/lib/shared/thread-utils.js
+++ b/lib/shared/thread-utils.js
@@ -1024,10 +1024,7 @@
userInfos: UserInfos,
checkOnlyViewerBlock?: boolean,
): boolean {
- if (
- threadOrParentThreadIsGroupChat(threadInfo) ||
- threadOrParentThreadHasAdminRole(threadInfo)
- ) {
+ if (threadOrParentThreadIsGroupChat(threadInfo)) {
return false;
}
@@ -1130,16 +1127,6 @@
return !!_find({ name: 'Admins' })(threadInfo.roles);
}
-function threadOrParentThreadHasAdminRole(
- threadInfo: LegacyRawThreadInfo | RawThreadInfo | ThreadInfo,
-) {
- return (
- threadMembersWithoutAddedAdmin(threadInfo).filter(member =>
- memberHasAdminPowers(member),
- ).length > 0
- );
-}
-
function identifyInvalidatedThreads(
updateInfos: $ReadOnlyArray<ClientUpdateInfo>,
): Set<string> {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Nov 25, 8:56 PM (19 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2580966
Default Alt Text
D11288.diff (878 B)
Attached To
Mode
D11288: [lib] Remove `threadOrParentThreadHasAdminRole` check from `threadIsWithBlockedUserOnly`
Attached
Detach File
Event Timeline
Log In to Comment