diff --git a/lib/shared/redux/update-roles-and-permissions.js b/lib/shared/redux/update-roles-and-permissions.js --- a/lib/shared/redux/update-roles-and-permissions.js +++ b/lib/shared/redux/update-roles-and-permissions.js @@ -10,6 +10,7 @@ RawThreadInfos, LegacyRawThreadInfo, } from '../../types/thread-types.js'; +import type { RawThreadInfoWithMemberPermissions } from '../../types/minimally-encoded-thread-permissions-types.js'; function updateRolesAndPermissions( threadStoreInfos: RawThreadInfos, diff --git a/lib/types/minimally-encoded-thread-permissions-types.js b/lib/types/minimally-encoded-thread-permissions-types.js --- a/lib/types/minimally-encoded-thread-permissions-types.js +++ b/lib/types/minimally-encoded-thread-permissions-types.js @@ -183,7 +183,7 @@ }; const decodeMinimallyEncodedRawThreadInfo = ( - minimallyEncodedRawThreadInfo: RawThreadInfo, + minimallyEncodedRawThreadInfo: RawThreadInfoWithMemberPermissions, ): LegacyRawThreadInfo => { const { minimallyEncoded, members, roles, currentUser, ...rest } = minimallyEncodedRawThreadInfo;