Return null instead of return@launch

Co-authored-by: Benoit Marty <benoit.marty@gmail.com>
This commit is contained in:
Jenna Vassar
2026-05-11 11:27:31 -07:00
committed by GitHub
parent 4b479638a4
commit e0046e9862
@@ -228,7 +228,7 @@ class TimelinePresenter(
TimelineEvent.MarkAllAsRead -> sessionCoroutineScope.launch {
val latestEventId = room.liveTimeline.getLatestEventId().getOrElse {
Timber.tag(tag).w(it, "Failed to get latest event id to mark as fully read")
return@launch
null
} ?: return@launch
markAsFullyRead(room.roomId, latestEventId)
}