Fix roles not updating on channel members updated websocket event (#9539)

This commit is contained in:
Daniel Espino García 2026-03-03 13:09:07 +01:00 committed by GitHub
parent 1a01c532a1
commit c391484cc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -211,7 +211,7 @@ export async function handleChannelMemberUpdatedEvent(serverUrl: string, msg: an
channelMemberships: [updatedChannelMember],
prepareRecordsOnly: true,
}));
const rolesRequest = await fetchRolesIfNeeded(serverUrl, updatedChannelMember.roles.split(','), true);
const rolesRequest = await fetchRolesIfNeeded(serverUrl, updatedChannelMember.roles.split(' '), true);
if (rolesRequest.roles?.length) {
models.push(...await operator.handleRole({roles: rolesRequest.roles, prepareRecordsOnly: true}));
}