mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-26 03:16:02 +03:00
Also filter out using the canonical alias
This commit is contained in:
parent
85b1edc6d2
commit
98a89564e1
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ class RoomDirectoryViewModel @AssistedInject constructor(
|
||||||
val newPublicRooms = data.chunk.orEmpty()
|
val newPublicRooms = data.chunk.orEmpty()
|
||||||
.filter {
|
.filter {
|
||||||
showAllRooms
|
showAllRooms
|
||||||
|| "${it.name} ${it.topic}".toLowerCase(Locale.ROOT)
|
|| "${it.name.orEmpty()} ${it.topic.orEmpty()} ${it.canonicalAlias.orEmpty()}".toLowerCase(Locale.ROOT)
|
||||||
.let { str ->
|
.let { str ->
|
||||||
explicitContentTerms.all { term -> term !in str }
|
explicitContentTerms.all { term -> term !in str }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue