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 @@ -58,7 +58,6 @@ type ComposableMessageInfo, } from '../types/message-types.js'; import type { - MinimallyEncodedRoleInfo, RawThreadInfo, MinimallyEncodedThreadCurrentUserInfo, ThreadInfo, @@ -67,7 +66,6 @@ decodeMinimallyEncodedRoleInfo, minimallyEncodeMemberInfo, minimallyEncodeRawThreadInfo, - minimallyEncodeRoleInfo, minimallyEncodeThreadCurrentUserInfo, } from '../types/minimally-encoded-thread-permissions-types.js'; import { userRelationshipStatus } from '../types/relationship-types.js'; @@ -363,12 +361,12 @@ makePermissionsBlob(permissions, null, threadID, threadType), threadID, ); - const role: MinimallyEncodedRoleInfo = minimallyEncodeRoleInfo({ + const role = { id: `${threadID}/role`, name: 'Members', permissions, isDefault: true, - }); + }; const rawThreadInfo: RawThreadInfo = { minimallyEncoded: true,