How can I distinguish between a 1:1 channel and a group messsaging channel?

A 1 to 1 channel is technically a Group Channel with just two users. Therefore, you can simply check if a channel is 1:1 with something like:

if (channel.getMemberCount() == 2) // channel is 1:1

Have more questions? Submit a request


Please sign in to leave a comment.