mirror of
https://gitlab.linphone.org/BC/public/linphone-android.git
synced 2026-01-17 11:28:06 +00:00
Fixed manual filter of chat rooms
This commit is contained in:
parent
8526c24c3e
commit
4fb4c7c85d
1 changed files with 6 additions and 2 deletions
|
|
@ -128,9 +128,13 @@ class ConversationsListViewModel @UiThread constructor() : AbstractTopBarViewMod
|
|||
|
||||
val participants = chatRoom.participants
|
||||
val found = participants.find {
|
||||
it.address.asStringUriOnly().contains(filter)
|
||||
it.address.asStringUriOnly().contains(filter, ignoreCase = true)
|
||||
}
|
||||
if (found != null || chatRoom.peerAddress.asStringUriOnly().contains(filter)) {
|
||||
if (
|
||||
found != null ||
|
||||
chatRoom.peerAddress.asStringUriOnly().contains(filter, ignoreCase = true) ||
|
||||
chatRoom.subject.orEmpty().contains(filter, ignoreCase = true)
|
||||
) {
|
||||
val model = ConversationModel(chatRoom)
|
||||
list.add(model)
|
||||
count += 1
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue