mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 12:07:28 +00:00
Improve code.
This commit is contained in:
+1
-2
@@ -254,8 +254,7 @@ class MessagesPresenter(
|
|||||||
coroutineScope.launch {
|
coroutineScope.launch {
|
||||||
val latestEventId = room.liveTimeline.getLatestEventId().getOrElse {
|
val latestEventId = room.liveTimeline.getLatestEventId().getOrElse {
|
||||||
Timber.w(it, "Failed to get latest event id to mark as fully read")
|
Timber.w(it, "Failed to get latest event id to mark as fully read")
|
||||||
navigator.close()
|
null
|
||||||
return@launch
|
|
||||||
}
|
}
|
||||||
latestEventId?.let { eventId ->
|
latestEventId?.let { eventId ->
|
||||||
sessionCoroutineScope.launch {
|
sessionCoroutineScope.launch {
|
||||||
|
|||||||
Reference in New Issue
Block a user