From 98fc314799f6d25fac598e2ddcadf1c13e2b0edc Mon Sep 17 00:00:00 2001 From: MoerAI Date: Thu, 2 Apr 2026 19:34:15 +0900 Subject: [PATCH] fix(mattermost): remove nonfunctional enabled and allowFrom from group schema The enabled and allowFrom fields were accepted by the schema but not consumed by Mattermost runtime code, which could mislead operators into thinking group access was restricted when it was not. --- extensions/mattermost/src/config-schema-core.ts | 4 ---- extensions/mattermost/src/config-schema.ts | 4 ---- 2 files changed, 8 deletions(-) diff --git a/extensions/mattermost/src/config-schema-core.ts b/extensions/mattermost/src/config-schema-core.ts index 9bb9dc1be51..b7d726278e0 100644 --- a/extensions/mattermost/src/config-schema-core.ts +++ b/extensions/mattermost/src/config-schema-core.ts @@ -12,10 +12,6 @@ const MattermostGroupSchema = z .object({ /** Whether mentions are required to trigger the bot in this group. */ requireMention: z.boolean().optional(), - /** Whether the bot is enabled in this group. */ - enabled: z.boolean().optional(), - /** Allowlist of sender IDs permitted to interact in this group. */ - allowFrom: z.array(z.union([z.string(), z.number()])).optional(), }) .strict(); diff --git a/extensions/mattermost/src/config-schema.ts b/extensions/mattermost/src/config-schema.ts index 191791f0b38..2e0cd0b3267 100644 --- a/extensions/mattermost/src/config-schema.ts +++ b/extensions/mattermost/src/config-schema.ts @@ -12,10 +12,6 @@ const MattermostGroupSchema = z .object({ /** Whether mentions are required to trigger the bot in this group. */ requireMention: z.boolean().optional(), - /** Whether the bot is enabled in this group. */ - enabled: z.boolean().optional(), - /** Allowlist of sender IDs permitted to interact in this group. */ - allowFrom: z.array(z.union([z.string(), z.number()])).optional(), }) .strict();