MCPcopy Create free account
hub / github.com/CommE2E/comm / threadIsWithBlockedUserOnlyWithoutAdminRoleCheck

Function threadIsWithBlockedUserOnlyWithoutAdminRoleCheck

lib/shared/thread-utils.js:1004–1019  ·  view source on GitHub ↗
(
  threadInfo: ThreadInfo | RawThreadInfo | LegacyRawThreadInfo,
  viewerID: ?string,
  userInfos: UserInfos,
  checkOnlyViewerBlock: boolean,
)

Source from the content-addressed store, hash-verified

1002}
1003
1004function threadIsWithBlockedUserOnlyWithoutAdminRoleCheck(
1005 threadInfo: ThreadInfo | RawThreadInfo | LegacyRawThreadInfo,
1006 viewerID: ?string,
1007 userInfos: UserInfos,
1008 checkOnlyViewerBlock: boolean,
1009): boolean {
1010 if (threadOrParentThreadIsGroupChat(threadInfo)) {
1011 return false;
1012 }
1013 return baseThreadIsWithBlockedUserOnly(
1014 threadInfo,
1015 viewerID,
1016 userInfos,
1017 checkOnlyViewerBlock,
1018 );
1019}
1020
1021function useThreadFrozenDueToViewerBlock(
1022 threadInfo: ThreadInfo,

Callers 3

checkThreadsFrozenFunction · 0.90
useThreadsWithPermissionFunction · 0.85

Tested by

no test coverage detected