diff --git a/keyserver/src/updaters/role-updaters.js b/keyserver/src/updaters/role-updaters.js --- a/keyserver/src/updaters/role-updaters.js +++ b/keyserver/src/updaters/role-updaters.js @@ -5,7 +5,7 @@ import { getRolePermissionBlobs } from 'lib/permissions/thread-permissions.js'; import type { ThreadRolePermissionsBlob } from 'lib/types/thread-permission-types.js'; -import type { ThreadType } from 'lib/types/thread-types-enum.js'; +import type { ThinThreadType } from 'lib/types/thread-types-enum.js'; import type { ServerLegacyRoleInfo } from 'lib/types/thread-types.js'; import createIDs from '../creators/id-creator.js'; @@ -16,7 +16,7 @@ async function updateRoles( viewer: Viewer, threadID: string, - threadType: ThreadType, + threadType: ThinThreadType, ): Promise { const currentRoles: $ReadOnlyArray = await fetchRoles(threadID); diff --git a/lib/types/thread-types.js b/lib/types/thread-types.js --- a/lib/types/thread-types.js +++ b/lib/types/thread-types.js @@ -32,7 +32,6 @@ type UserSurfacedPermission, } from './thread-permission-types.js'; import { - type ThreadType, type ThinThreadType, type ThickThreadType, threadTypeValidator, @@ -278,7 +277,7 @@ }; export type ThreadChanges = Partial<{ - +type: ThreadType, + +type: ThinThreadType, +name: string, +description: string, +color: string,