fix: issue where uncategorised channels don't show
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
456830a4fa
commit
e2dfb7ecc0
|
|
@ -28,7 +28,13 @@ object ChannelUtils {
|
|||
val output = mutableListOf<CategorisedChannelList>()
|
||||
|
||||
val uncategorised =
|
||||
server.channels?.filter { c -> server.categories?.none { cat -> cat.channels?.contains(c) == true } == true }
|
||||
server.channels?.filter { c ->
|
||||
server.categories?.none { cat ->
|
||||
cat.channels?.contains(
|
||||
c
|
||||
) == true
|
||||
} ?: true
|
||||
}
|
||||
?.mapNotNull {
|
||||
RevoltAPI.channelCache[it]?.let { it1 ->
|
||||
CategorisedChannelList.Channel(it1)
|
||||
|
|
|
|||
Loading…
Reference in New Issue