Improve code.
This commit is contained in:
parent
4add14da84
commit
4c1b9cca08
1 changed files with 1 additions and 2 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue