requireParticipant

fun requireParticipant(passedParticipant: Participant? = null): Participant

Returns the passedParticipant or the currently provided ParticipantLocal.

Throws

if passedParticipant is null and no ParticipantLocal is available (e.g. not inside a RoomScope).