bianca
January 24, 2025, 7:49pm
1
there is one channel not being returned by this method. It only gets returned if I send its channelId
const unsubscriber = ChannelRepository.getChannels(
{
limit: 100,
isDeleted: false,
sortBy: 'displayName',
// channelIds: ['67759d6ef75f525e4c00faa6']
},
({ data: channelsData, onNextPage, hasNextPage, loading }) => setChannels(channelsData));
Hello @bianca , Please check the type of channel you’re using. Conversation channels can’t be searched if you’re not a member of that channel. Let us know if you need further clarification!
bianca
January 27, 2025, 12:12pm
3
it is a community type channel
Hello @bianca , Our team recommends trying the following approaches based on your requirements:
1. Get Channels by Membership (Member Only):
const unsubscribe = ChannelRepository.getChannels(
{
limit: 20,
sortBy: 'lastActivity',
membership: 'member'
},
(data) => {
console.log('data: ', data);
}
);
2. Get Channels by Display Name:
const unsubscribe = ChannelRepository.getChannels(
{
limit: 20,
sortBy: 'displayName',
displayName: 'topAmity'
},
(data) => {
console.log('data: ', data);
}
);
Please try these methods and let us know if you need further assistance.