mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2024-11-22 09:25:49 +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()
|
||||
.filter {
|
||||
showAllRooms
|
||||
|| "${it.name} ${it.topic}".toLowerCase(Locale.ROOT)
|
||||
|| "${it.name.orEmpty()} ${it.topic.orEmpty()} ${it.canonicalAlias.orEmpty()}".toLowerCase(Locale.ROOT)
|
||||
.let { str ->
|
||||
explicitContentTerms.all { term -> term !in str }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue