Skip to content

Commit b8ec0a6

Browse files
committed
show latest messages first at search results
1 parent 43c55e2 commit b8ec0a6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ android {
6262
}
6363

6464
dependencies {
65-
implementation 'com.github.SimpleMobileTools:Simple-Commons:e3376e4f56'
65+
implementation 'com.github.SimpleMobileTools:Simple-Commons:e8ad6a9128'
6666
implementation 'org.greenrobot:eventbus:3.3.1'
6767
implementation 'com.github.tibbi:IndicatorFastScroll:4524cd0b61'
6868
implementation 'com.github.tibbi:android-smsmms:fe58a74d59'

app/src/main/kotlin/com/simplemobiletools/smsmessenger/activities/SearchActivity.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ class SearchActivity : SimpleActivity() {
110110
searchResults.add(searchResult)
111111
}
112112

113-
messages.forEach { message ->
113+
messages.sortedByDescending { it.id }.forEach { message ->
114114
var recipient = message.senderName
115115
if (recipient.isEmpty() && message.participants.isNotEmpty()) {
116116
val participantNames = message.participants.map { it.name }

0 commit comments

Comments
 (0)