Page MenuHomePhabricator

D11288.id37962.diff
No OneTemporary

D11288.id37962.diff

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

Mime Type
text/plain
Expires
Mon, Nov 25, 10:32 PM (20 h, 33 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2580966
Default Alt Text
D11288.id37962.diff (878 B)

Event Timeline