getActiveVoipSessionByThreadId

open fun getActiveVoipSessionByThreadId(@NonNull context: Context, @Nullable threadId: String): VoipSessionItem

Call this method to retrieve, if exist, an ongoing VoIP session related to a specific conversation

Note that : this method has access to database, so it is better to minimize calls to this method from UI thread

Return

VoipSessionItem if the specified thread has an active VoIP session, null otherwise

Parameters

context

the application context

threadId

conversation ID