feat: web UI chat render, panels, presence + analytics
This commit is contained in:
1 parent
75425d1bee
commit
ed469ba8dd
83 files changed
+6034
-136
No files matched your search
@@ -0,0 +1,10 @@
|
||||
import asyncpg
|
||||
|
||||
|
||||
async def read_up_to(pool: asyncpg.Pool, account_id: int, chat_id: int) -> int | None:
|
||||
return await pool.fetchval(
|
||||
"SELECT max(message_id) FROM read_receipts "
|
||||
"WHERE account_id = $1 AND chat_id = $2 AND kind = 'read'",
|
||||
account_id,
|
||||
chat_id,
|
||||
)
|
||||
Reference in new issue
Block a user