Code optimization.
This commit is contained in:
parent
a8d66ec7e2
commit
8eccd1b6e1
1 changed files with 1 additions and 4 deletions
|
|
@ -65,10 +65,7 @@ private fun createLastForwardIndicator(identifier: String): MatrixTimelineItem {
|
|||
|
||||
private fun List<MatrixTimelineItem>.latestEventIdentifier(): String {
|
||||
return findLast {
|
||||
when (it) {
|
||||
is MatrixTimelineItem.Event -> true
|
||||
else -> false
|
||||
}
|
||||
it is MatrixTimelineItem.Event
|
||||
}?.let {
|
||||
(it as MatrixTimelineItem.Event).uniqueId
|
||||
} ?: "fake_id"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue