From a985708f70e11dddc15f968c2845f83e226419e7 Mon Sep 17 00:00:00 2001 From: markov Date: Tue, 24 Feb 2026 23:24:51 +0100 Subject: [PATCH] =?UTF-8?q?feat:=20auto-subscribe=20=D0=BD=D0=B0=20=D0=BF?= =?UTF-8?q?=D1=80=D0=BE=D0=B5=D0=BA=D1=82=D1=8B=20=D0=BF=D1=80=D0=B8=20aut?= =?UTF-8?q?h=20(=D0=BF=D0=BE=20membership)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/tracker/ws/handler.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tracker/ws/handler.py b/src/tracker/ws/handler.py index 61d6d90..53edb46 100644 --- a/src/tracker/ws/handler.py +++ b/src/tracker/ws/handler.py @@ -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": {