feat: add message reliability foundation
All checks were successful
CI / test (push) Successful in 23s

- implement idempotent message creation via client_message_id

- add persistent delivered/read receipts

- expose /messages/status and wire websocket receipt events

- update web client to send client ids and auto-ack delivered/read
This commit is contained in:
2026-03-07 23:57:35 +03:00
parent ff6f409c5a
commit f6ad480973
13 changed files with 382 additions and 28 deletions

View File

@@ -2,7 +2,7 @@ from app.auth.models import EmailVerificationToken, PasswordResetToken
from app.chats.models import Chat, ChatMember
from app.email.models import EmailLog
from app.media.models import Attachment
from app.messages.models import Message
from app.messages.models import Message, MessageIdempotencyKey, MessageReceipt
from app.notifications.models import NotificationLog
from app.users.models import User
@@ -13,6 +13,8 @@ __all__ = [
"EmailLog",
"EmailVerificationToken",
"Message",
"MessageIdempotencyKey",
"MessageReceipt",
"NotificationLog",
"PasswordResetToken",
"User",