# Issue create one-2-one chat

**URL:** <https://community.sendbird.com/t/issue-create-one-2-one-chat/5999>\
**Category:** Miscellaneous\
**Tags:** group-channel\
**Created:** [November 20, 2022, 8:49am UTC](https://community.sendbird.com/t/issue-create-one-2-one-chat/5999 "2022-11-20T08:49:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ujjwal\_garg](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/ujjwal_garg/32/3284_2.png) [@ujjwal\_garg](https://community.sendbird.com/u/ujjwal_garg)\
**Post date:** [November 20, 2022, 8:49am UTC](https://community.sendbird.com/t/issue-create-one-2-one-chat/5999/1 "2022-11-20T08:49:17Z")

</div>

My team is evaluating Sendbird chat feature for enabling one-2-one chat in our app. They are facing a challenge.  
Per them, way to do enable one-2-one chat is by creating private group channel.  
Code is as follows:  
POST https://api-.sendbird.com/v3/group\_channels  
{  
“user\_ids”: [“receiver\_user\_id”, “sender\_user\_id”],  
“is\_distinct”: false,  
“custom\_type”: “Private”,  
“name”: “Group channel”  
}  
Issue is, after hitting this API, we see newly created chat channel on sender side but nothing on receiver side.  
We expect it to work just like Whatsapp, wherein when sender initiate a chat and send message, receiver should see it.  
Please help.

---

<div class="post-metadata">

**Author:** ![Doug\_Exner](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/doug_exner/32/52_2.png) [@Doug\_Exner](https://community.sendbird.com/u/Doug_Exner)\
**Post date:** [November 20, 2022, 7:34pm UTC](https://community.sendbird.com/t/issue-create-one-2-one-chat/5999/2 "2022-11-20T19:34:37Z")

</div>

By default, the other user won’t see the channel until there is a message sent. You can change the behavior by updating the channel list query to include empty channels, but that isn’t desirable for most people. It is odd to have an empty channel just show up if the sender never actually sends a message.

---

<div class="post-metadata">

**Author:** ![sardorbek.numonov](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/sardorbek.numonov/32/697_2.png) [@sardorbek.numonov](https://community.sendbird.com/u/sardorbek.numonov)\
**Post date:** [November 21, 2022, 1:04am UTC](https://community.sendbird.com/t/issue-create-one-2-one-chat/5999/3 "2022-11-21T01:04:08Z")

</div>

Hi @ujjwal_garg. As Doug\_Exner said that empty channels are not listed by default. You need to add [the following code on the SDK side:](https://sendbird.com/docs/chat/v4/android/channel/retrieving-channels/retrieve-a-list-of-channels#2-group-channels)` includeEmpty = true`

```auto
val query = GroupChannel.createMyGroupChannelListQuery(
    GroupChannelListQueryParams().apply {
        includeEmpty = true
        myMemberStateFilter = MyMemberStateFilter.JOINED // Another acceptable value is INVITED.
        order = GroupChannelListQueryOrder.LATEST_LAST_MESSAGE // Other acceptable values include CHRONOLOGICAL, LATEST_LAST_MESSAGE, CHANNEL_NAME_ALPHABETICAL, and METADATA_VALUE_ALPHABETICAL.
        limit = 15
    }
)
query.next { channels, e ->
    if (e != null) {
        // Handle error.
    }
}

```

This is an Android example. You can find this for another SDK on [Documentation for SDK and API | Sendbird Docs](https://sendbird.com/docs/chat) page
