1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-05 13:35:52 +02:00

enhance: チャットの閲覧を無効化できるように (#15765)

* enhance: チャットの閲覧を無効化できるように

* fix

* fix

* fix

* readonlyの説明を追加

* enhance: チャットが無効な場合はチャット関連の設定も隠すように

* fix

* refactor: ChatServiceからApiに関するドメイン知識を排除
This commit is contained in:
かっこかり
2025-04-07 19:09:11 +09:00
committed by GitHub
parent 6c27ab12eb
commit 9d3f3264fd
42 changed files with 255 additions and 136 deletions

View File

@@ -292,9 +292,10 @@ export const packedRolePoliciesSchema = {
type: 'boolean',
optional: false, nullable: false,
},
canChat: {
type: 'boolean',
chatAvailability: {
type: 'string',
optional: false, nullable: false,
enum: ['available', 'readonly', 'unavailable'],
},
},
} as const;