# Want to fetch public group non invited and joined channel

**URL:** <https://community.sendbird.com/t/want-to-fetch-public-group-non-invited-and-joined-channel/1346>\
**Category:** iOS\
**Tags:** chatsdk\
**Created:** [December 1, 2020, 4:18pm UTC](https://community.sendbird.com/t/want-to-fetch-public-group-non-invited-and-joined-channel/1346 "2020-12-01T16:18:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![patelvivek9115](https://avatars.discourse-cdn.com/v4/letter/p/7993a0/32.png) [@patelvivek9115](https://community.sendbird.com/u/patelvivek9115)\
**Post date:** [December 1, 2020, 4:18pm UTC](https://community.sendbird.com/t/want-to-fetch-public-group-non-invited-and-joined-channel/1346/1 "2020-12-01T16:18:03Z")

</div>

Hi i want to fetch a list of group channels that are public and which are not joined by the current user also he is not invited to the group. I have tried to find out the filter for it but I am not getting an appropriate solution could you please help me with this

```
        self.channelListQuery = SBDGroupChannel.createMyGroupChannelListQuery()
        self.channelListQuery?.order = .latestLastMessage
        self.channelListQuery?.limit = 20
        self.channelListQuery?.publicChannelFilter = .public
        self.channelListQuery?.includeEmptyChannel = true
        self.channelListQuery?.queryType = .and
        self.channelListQuery?.memberStateFilter = .statefilterInvitedByNonFriend
```

---

<div class="post-metadata">

**Author:** ![Alex\_Preston](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/alex_preston/32/167_2.png) [@Alex\_Preston](https://community.sendbird.com/u/Alex_Preston)\
**Post date:** [December 1, 2020, 9:32pm UTC](https://community.sendbird.com/t/want-to-fetch-public-group-non-invited-and-joined-channel/1346/2 "2020-12-01T21:32:37Z")

</div>

Hell0 @patelvivek9115,

Can you check out SBDGroupChannel.create **Public** GroupChannelListQuery()? And see if that works for you?

---

<div class="post-metadata">

**Author:** ![SeungHyun\_Kim](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/seunghyun_kim/32/3209_2.png) [@SeungHyun\_Kim](https://community.sendbird.com/u/SeungHyun_Kim)\
**Post date:** [December 1, 2022, 8:07pm UTC](https://community.sendbird.com/t/want-to-fetch-public-group-non-invited-and-joined-channel/1346/5 "2022-12-01T20:07:55Z")

</div>

it shows only joined group channels even it is public group channel
