Skip to content

Commit

Permalink
fix autocomplete duplicates
Browse files Browse the repository at this point in the history
(cherry picked from commit 8711e86)
  • Loading branch information
crackededed committed Dec 11, 2023
1 parent 02e3b2a commit 63f9f23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ android {
minSdk = 16
targetSdk = 34
versionCode = 121
versionName = "2.26.3"
versionName = "2.26.4"
resourceConfigurations += listOf("ar", "de", "en", "es", "fr", "in", "ja", "pt-rBR", "ru", "tr", "zh-rTW")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,7 @@ class ChatView : ConstraintLayout {
if (!list.isNullOrEmpty()) {
if (messagingEnabled) {
val newItems = list.filter { it !in autoCompleteList }
autoCompleteList.addAll(newItems)
autoCompleteAdapter?.addAll(newItems)
autoCompleteAdapter?.addAll(newItems) ?: autoCompleteList.addAll(newItems)
}
}
}
Expand Down

0 comments on commit 63f9f23

Please sign in to comment.