From e0046e9862bc4d0475e5a60b7cd98363e465230f Mon Sep 17 00:00:00 2001 From: Jenna Vassar <5023996+jennaharris7@users.noreply.github.com> Date: Mon, 11 May 2026 11:27:31 -0700 Subject: [PATCH] Return null instead of return@launch Co-authored-by: Benoit Marty --- .../features/messages/impl/timeline/TimelinePresenter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/TimelinePresenter.kt b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/TimelinePresenter.kt index 5fb63a4f4b..2507b046f2 100644 --- a/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/TimelinePresenter.kt +++ b/features/messages/impl/src/main/kotlin/io/element/android/features/messages/impl/timeline/TimelinePresenter.kt @@ -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) }