The user.presence_status_updated
payload.object.id
field is the “User ID of the user whose presence status was updated” per the documentation. It seems that this field is always downcased.
For example, in a meeting.started
webhook:
{
"event": "meeting.started",
"payload": {
"account_id": "rNsp1ezDTG6z9B2nXyHSsw",
"object": {
"duration": 1,
"start_time": "2021-02-01T22:39:21Z",
"timezone": "",
"topic": "XXX",
"id": "XXXXX",
"type": 1,
"uuid": "Lv/FNM+CTrOPoTpflCNWRg==",
"host_id": "eGAHtja4QHqdRL5zwCbJrg"
}
},
"event_ts": 1612219161157
}
you can see the host_id
field contains uppercase characters.
However, in a user.presence_status_updated
payload:
{
"event": "user.presence_status_updated",
"payload": {
"account_id": "rNsp1ezDTG6z9B2nXyHSsw",
"object": {
"date_time": "2021-02-01T22:41:29Z",
"email": "XXX",
"id": "egahtja4qhqdrl5zwcbjrg",
"presence_status": "Available"
}
},
"event_ts": 1612219289765
}
As you can see, the ids match except for case.
- Is this a bug that we could expect to be resolved?
- Can we safely treat user ids as case insensitive or is
user.presence_status_updated
effectively unusable until resolved?