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.
This commit is contained in:
MoerAI 2026-04-02 19:34:15 +09:00 committed by Altay
parent f594e2ac3b
commit 98fc314799
No known key found for this signature in database
2 changed files with 0 additions and 8 deletions

View File

@ -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();

View File

@ -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();