fix: persist message delivery status across server restarts
All checks were successful
CI / test (push) Successful in 21s
All checks were successful
CI / test (push) Successful in 21s
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user