Hello,
I use setRoomApiField to assign a clear text name to an easyrtc id. I cannot use setUsername because the name is just available
after I call easyrtc.connect(). That works as expected and I can use the name as an alias for the easyrtc id.
Now I found a problem when calling updatePresence. I use that to signal to the other peers of a room that a certain peer is busy.
If I call updatePresence that triggers the RoomOccupantListener as expected. The problem is that now the apiField Object is
not longer contained in the peer data for the peer which called the updatePresence function. The presence status which was set
by that peer is contained but not the apiField. With that I do not have the name which I assigned to that peer which is needed as
a primary key for a database lookup.
All other peers which are signaled in the RoomOccupantListener still have the apiField.
That behaviour happens just ones - for the very first broadcast of the room occupants. If I disconnect another peer and reconnect it
it gets all other peers with both information parts - the actual presence state AND the apiField.
Is that intented behavior? What can I do to achieve both goals - having apiFields assigned to an easyrtc ID and dynamic presence
information?
Thank you