Show channel with specific condition on top just like pinned channels on whatsApp #2209
-
Can we show some channels on the top with some custom logic? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi @SSaleemSSI, Thanks for reaching out. Have you tried the sort feature of our Channel list query? Here is the link to the docs: Let me know if this helps. Regards, |
Beta Was this translation helpful? Give feedback.
-
Hi, I have a similar issue like above but i looked at the docs and it only allows to apply SORT option based on some variables, but what if i want to apply sort based on my custom boolean var to query channels? Can anybody help me with this? |
Beta Was this translation helpful? Give feedback.
-
Hello, This is now finally implemented on 4.35.0 release. We recommend updating to 4.35.1 though, since it includes an important fix. You can now sort channel lists by custom properties. You can check the custom sorting section in these docs: https://getstream.io/chat/docs/sdk/ios/client/controllers/channels/#1-create-a-query. Best, |
Beta Was this translation helpful? Give feedback.
Hello,
This is now finally implemented on 4.35.0 release. We recommend updating to 4.35.1 though, since it includes an important fix.
You can now sort channel lists by custom properties. You can check the custom sorting section in these docs: https://getstream.io/chat/docs/sdk/ios/client/controllers/channels/#1-create-a-query.
Best,
Nuno