fix: persist message delivery status across server restarts
All checks were successful
CI / test (push) Successful in 21s

This commit is contained in:
2026-03-08 12:27:54 +03:00
parent 831047447b
commit 8689283e99
4 changed files with 27 additions and 1 deletions

View File

@@ -180,6 +180,11 @@ async def create_message_receipt(
return receipt
async def list_chat_receipts(db: AsyncSession, *, chat_id: int) -> list[MessageReceipt]:
result = await db.execute(select(MessageReceipt).where(MessageReceipt.chat_id == chat_id))
return list(result.scalars().all())
async def get_message_reaction(db: AsyncSession, *, message_id: int, user_id: int) -> MessageReaction | None:
result = await db.execute(
select(MessageReaction)