refac: sync channel room on member removal (#30446)

Removing members from a group or DM channel now also removes their sessions from the channel room, matching how access grant changes are handled.
This commit is contained in:
Classic298
2026-09-23 23:43:20 -04:00
committed by GitHub
parent 443736e1fe
commit 2867f7225b
+2
View File
@@ -688,6 +688,8 @@ async def remove_members_by_id(
try:
deleted = await Channels.remove_members_from_channel(channel.id, form_data.user_ids, db=db)
if channel.type in ['group', 'dm']:
await leave_room_for_users(f'channel:{channel.id}', form_data.user_ids)
await publish_event(
request,