Meeting host tried to withdraw permission of co-host after making as a co-host during a meeting, received same payload for meeting.participant_role_changed

We could able to convert an attendee to a co-host during a meeting. During this time, we got a req.body for meeting.participant_role_changed as:

{
event: ‘meeting.participant_role_changed’,
payload: {
account_id: ‘HHJJJS’,
object: {
uuid: ‘dKJiztHkQ76r+Ta5XgTK’,
participant: {
new_role: ‘co-host’,
date_time: ‘2024-11-08T11:22:00Z’,
user_id: ‘1678233’,
user_name: ‘Test User’,
old_role: ‘attendee’,
participant_user_id: ‘’,
email: ‘nuvexodilli@yopmail.com’,
participant_uuid: ‘F2C83B6B-83CC-A1AF-0C49-E91EE4EB3CD7’
},
id: ‘84176032004’,
type: 2,
topic: ‘Test meet 4 8 nov’,
host_id: ‘uEG_gsE6Tx68HOPxbQT’,
duration: 51,
start_time: ‘2024-11-08T11:21:20Z’,
timezone: ‘Asia/Calcutta’
}
},
event_ts: 1731064960940,
user: ‘admin’
}

But when we tried to convert a co-host to attendee via ‘withdraw permission of co-host’ option during that meeting. This time also, we got a same req.body as before for meeting.participant_role_changed as follows:

{
event: ‘meeting.participant_role_changed’,
payload: {
account_id: ‘HHJJJS’,
object: {
uuid: ‘dKJiztHkQ76r+Ta5XgTK’,
participant: {
new_role: ‘co-host’,
date_time: ‘2024-11-08T11:22:00Z’,
user_id: ‘1678233’,
user_name: ‘Test User’,
old_role: ‘attendee’,
participant_user_id: ‘’,
email: ‘nuvexodilli@yopmail.com’,
participant_uuid: ‘F2C83B6B-83CC-A1AF-0C49-E91EE4EB3CD7’
},
id: ‘84176032004’,
type: 2,
topic: ‘Test meet 4 8 nov’,
host_id: ‘uEG_gsE6Tx68HOPxbQT’,
duration: 51,
start_time: ‘2024-11-08T11:21:20Z’,
timezone: ‘Asia/Calcutta’
}
},
event_ts: 1731064960940,
user: ‘admin’
}

We need help in ‘withdraw permission of co-host’ payload. It should have send as new_role: ‘attendee’ & old_role: ‘co-host’. Do I need to change anything in my code?

Thanks in advance.

Waiting so long. 11d . Please help.

This is a duplicate post, closing this thread