feat: auto-subscribe на проекты при auth (по membership)
Some checks failed
Deploy Tracker / deploy (push) Failing after 3s

This commit is contained in:
markov 2026-02-24 23:24:51 +01:00
parent cab0baca11
commit a985708f70

View File

@ -199,6 +199,10 @@ async def _authenticate(ws: WebSocket, token: str, on_behalf_of: str | None = No
"chat_id": str(chat.id) if chat else None,
})
# Auto-subscribe to all member's projects
for p in project_list:
client.subscribed_projects.add(p["id"])
await ws.send_json({
"type": "auth.ok",
"data": {