feat: auto-subscribe на проекты при auth (по membership)
Some checks failed
Deploy Tracker / deploy (push) Failing after 3s
Some checks failed
Deploy Tracker / deploy (push) Failing after 3s
This commit is contained in:
parent
cab0baca11
commit
a985708f70
@ -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,
|
"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({
|
await ws.send_json({
|
||||||
"type": "auth.ok",
|
"type": "auth.ok",
|
||||||
"data": {
|
"data": {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user