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 output = mutableListOf<CategorisedChannelList>()
|
||||||
|
|
||||||
val uncategorised =
|
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 {
|
?.mapNotNull {
|
||||||
RevoltAPI.channelCache[it]?.let { it1 ->
|
RevoltAPI.channelCache[it]?.let { it1 ->
|
||||||
CategorisedChannelList.Channel(it1)
|
CategorisedChannelList.Channel(it1)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue