# IOS UIKit is not showing public community joined channels in recent messages list

**URL:** <https://forum.social.plus/t/ios-uikit-is-not-showing-public-community-joined-channels-in-recent-messages-list/1179>\
**Category:** iOS\
**Created:** [March 7, 2024, 6:49am UTC](https://forum.social.plus/t/ios-uikit-is-not-showing-public-community-joined-channels-in-recent-messages-list/1179 "2024-03-07T06:49:55Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vibhorMaheshwari](https://avatars.discourse-cdn.com/v4/letter/v/db5fbb/32.png) [@vibhorMaheshwari](https://forum.social.plus/u/vibhorMaheshwari)\
**Post date:** [March 7, 2024, 6:49am UTC](https://forum.social.plus/t/ios-uikit-is-not-showing-public-community-joined-channels-in-recent-messages-list/1179/1 "2024-03-07T06:49:55Z")

</div>

IOS UIKit is not showing public community joined channels in recent messages list.  
we are using this code:

```auto
let chatHomePageVC = AmityChatHomePageViewController.make()
self.navigationController?.pushViewController(chatHomePageVC, animated: true)
(upload://aQvdZ0eo8ofOTXvbWReankiHXvy.png)

```

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [March 7, 2024, 7:29am UTC](https://forum.social.plus/t/ios-uikit-is-not-showing-public-community-joined-channels-in-recent-messages-list/1179/2 "2024-03-07T07:29:43Z")

</div>

Has the user successfully joined? Could you please also provide a screenshot so that we can better understand which screen you are referring to?

---

<div class="post-metadata">

**Author:** ![vibhorMaheshwari](https://avatars.discourse-cdn.com/v4/letter/v/db5fbb/32.png) [@vibhorMaheshwari](https://forum.social.plus/u/vibhorMaheshwari)\
**Post date:** [March 7, 2024, 7:36am UTC](https://forum.social.plus/t/ios-uikit-is-not-showing-public-community-joined-channels-in-recent-messages-list/1179/3 "2024-03-07T07:36:07Z")

</div>

Yes, channel are successfully joined, and also we have broadcast some test messages to some joined groups form Amity Console. This is how home screen is looks like:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/amity/original/1X/74286480193ddb82586b5fb867ff02e733fb6198.png)

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [March 8, 2024, 9:18am UTC](https://forum.social.plus/t/ios-uikit-is-not-showing-public-community-joined-channels-in-recent-messages-list/1179/4 "2024-03-08T09:18:05Z")

</div>

Hello, after the team has reviewed, you can adjust the code to display other channel types.

```auto
private extension AmityRecentChatScreenViewModel {
    
    func getChannelList() {
        switch channelType {
        case .community:
            let query = AmityChannelQuery()
            query.types = [AmityChannelQueryType.community]
            query.filter = .userIsMember
            query.includeDeleted = false
            channelsCollection = channelRepository.getChannels(with: query)
        case .conversation:
            let query = AmityChannelQuery()
            query.types = [AmityChannelQueryType.conversation,AmityChannelQueryType.community]]
            query.includeDeleted = false
            channelsCollection = channelRepository.getChannels(with: query)
        default:
            break
        }
        channelsToken = channelsCollection?.observe { [weak self] (collection, change, error) in
            self?.prepareDataSource()
        }
    }

```

Please let us know if you have other questions.

---

<div class="post-metadata">

**Author:** ![vibhorMaheshwari](https://avatars.discourse-cdn.com/v4/letter/v/db5fbb/32.png) [@vibhorMaheshwari](https://forum.social.plus/u/vibhorMaheshwari)\
**Post date:** [March 8, 2024, 9:50am UTC](https://forum.social.plus/t/ios-uikit-is-not-showing-public-community-joined-channels-in-recent-messages-list/1179/5 "2024-03-08T09:50:49Z")

</div>

This is already in amity UIkit code,

if this code need to add in our code, then can you please tell us where it need to keep?

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/amity/original/1X/75b287b6e8a0374628b699a2dac091f2938120da.jpeg)

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/amity/original/1X/ad5321beb6715136fc79db33010eb53a52bd2cdf.jpeg)

---

<div class="post-metadata">

**Author:** ![SocialPlus\_Support](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.social.plus/socialplus_support/32/798_2.png) [@SocialPlus\_Support](https://forum.social.plus/u/SocialPlus_Support)\
**Post date:** [March 8, 2024, 1:02pm UTC](https://forum.social.plus/t/ios-uikit-is-not-showing-public-community-joined-channels-in-recent-messages-list/1179/6 "2024-03-08T13:02:59Z")

</div>

Yes, it’s UIKit code, and it’s customizable. Please review your code and ensure that it aligns with the code we provided, especially line 234.
