feat(notifications): per-chat mute settings
Some checks failed
CI / test (push) Failing after 18s

- add chat_notification_settings table and migration
- add chat notifications API (get/update muted)
- skip message notifications for muted recipients
- add mute/unmute control in chat info panel
This commit is contained in:
2026-03-08 02:17:09 +03:00
parent eddd4bda0b
commit ea8a50ee05
9 changed files with 238 additions and 3 deletions

View File

@@ -74,3 +74,13 @@ class ChatDeleteRequest(BaseModel):
class ChatDiscoverRead(ChatRead):
is_member: bool
class ChatNotificationSettingsRead(BaseModel):
chat_id: int
user_id: int
muted: bool
class ChatNotificationSettingsUpdate(BaseModel):
muted: bool