From 01ade64f3bcee19eb53e61390be3153fff4660e4 Mon Sep 17 00:00:00 2001 From: ariskotsomitopoulos Date: Mon, 17 Jan 2022 12:27:53 +0200 Subject: [PATCH] fix ktlint format --- .../sdk/internal/session/sync/handler/room/RoomSyncHandler.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/handler/room/RoomSyncHandler.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/handler/room/RoomSyncHandler.kt index e488516928..779d78f8c1 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/handler/room/RoomSyncHandler.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/sync/handler/room/RoomSyncHandler.kt @@ -516,7 +516,7 @@ internal class RoomSyncHandler @Inject constructor(private val readReceiptHandle private fun fixStuckLocalEcho(rooms: List) { // when there are not room events, there is no need to delete SENT messages // this might be useful for events like typing etc - if(rooms.isNullOrEmpty()) return + if (rooms.isNullOrEmpty()) return rooms.forEach { roomEntity -> roomEntity.sendingTimelineEvents.filter { timelineEvent -> timelineEvent.root?.sendState == SendState.SENT