Skip to content

Open-source AI teammates in Slack, Teams, Discord, Telegram and Mattermost. Self-host it, with any agent harness and any model.

fix(chats): the activity stream takes the rooms a membership notice names

raullopez-sandbox52a48d930d98
diff --git a/core/switch_core/gateway/chats.py b/core/switch_core/gateway/chats.py
index 483bea6f6..7557b9a78 100644
--- a/core/switch_core/gateway/chats.py
+++ b/core/switch_core/gateway/chats.py
@@ -859,7 +859,8 @@ async def chat_activity_events(
async def on_resync() -> None:
resync()
- def on_memberships() -> None:
+ def on_memberships(_room_ids: list[str] | None) -> None:
+ # Whichever rooms changed, the readable set is read again.
put(_MEMBERSHIPS)
service.watch_memberships(tenant_id, user.id, on_memberships)