diff --git a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/timeline/DefaultTimeline.kt b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/timeline/DefaultTimeline.kt index b67220edca..4821270869 100644 --- a/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/timeline/DefaultTimeline.kt +++ b/matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/timeline/DefaultTimeline.kt @@ -819,7 +819,7 @@ internal class DefaultTimeline( private val inMemorySendingEvents = Collections.synchronizedList(ArrayList()) fun getInMemorySendingEvents(): List { - return inMemorySendingEvents + return inMemorySendingEvents.toList() } /**