I am building an application that will (1) create a conversation (chat), (2) create two users, then add the two users to the conversation. This part is working.
At a future time, given the Conversation SID (CHXXX...), I would like to remove the Users and the conversation. I can get a list of the conversation participants, but this includes a Member SID (MBXXX...) not the User SID (USXXX...). I believe I need the User SID to remove the user, not the Member SID.
I may be missing the obvious on how to cross-reference the conversation members to their respective users.
Thanks.
I just realized I was overthinking this issue. When creating the participant, I can create a participant with a unique "identity" and then use that identity to give the user a "friendly name." The friendly name is displayed in the conversation. Then, when I tear down the conversation, I can directly delete the users using their "identity," there is no need to get their actual UserSid.