public List < ChatParticipant > adapt ( List < Participant > participants ) { List < ChatParticipant > result = new ArrayList <> ( ) ; if ( participants != null && ! participants . isEmpty ( ) ) { for ( Participant p : participants ) { result . add ( ChatParticipant . builder ( ) . populate ( p ) . build ( ) ) ; } } return result ; }
Translates Foundation conversation participants to Chat SDK conversation participants .