diff --git a/lib/shared/user-utils.js b/lib/shared/user-utils.js --- a/lib/shared/user-utils.js +++ b/lib/shared/user-utils.js @@ -6,7 +6,6 @@ ThreadInfo, RawThreadInfo, } from '../types/minimally-encoded-thread-permissions-types.js'; -import type { ServerThreadInfo } from '../types/thread-types.js'; import type { UserInfo } from '../types/user-types.js'; import { useSelector } from '../utils/redux-utils.js'; @@ -32,9 +31,7 @@ return 'anonymous'; } -function useKeyserverAdmin( - community: ThreadInfo | RawThreadInfo | ServerThreadInfo, -): ?UserInfo { +function useKeyserverAdmin(community: ThreadInfo | RawThreadInfo): ?UserInfo { const userInfos = useSelector(state => state.userStore.userInfos); // This hack only works as long as there is only one admin // Linear task to revert this: