Skip to content

Commit 6fd2280

Browse files
committed
chore: sort chats based on lastMessageMillis
Signed-off-by: Brandon McAnsh <git@bmcreations.dev>
1 parent 656106a commit 6fd2280

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

api/src/main/java/com/getcode/network/HistoryController.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class HistoryController @Inject constructor(
9999
} else {
100100
it
101101
}
102-
}
102+
}?.sortedByDescending { it.lastMessageMillis }
103103
_chats.update { chats }
104104
}
105105

0 commit comments

Comments
 (0)