isOneToOne

fun Channel.isOneToOne(currentUser: User?): Boolean

Checks if the channel is a direct conversation between the current user and some other user.

A one-to-one chat is basically a corner case of a distinct channel with only 2 members.

Return

True if the channel is a one-to-one conversation.

Parameters

currentUser

The currently logged in user.