Skip to content

Commit 4222761

Browse files
committed
More cleanup
1 parent 19e218e commit 4222761

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/timeline/LoadTimelineStrategy.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ internal class LoadTimelineStrategy constructor(
360360
initialEventId = mode.originEventId(),
361361
onBuiltEvents = dependencies.onEventsUpdated,
362362
onEventsDeleted = dependencies.onEventsDeleted,
363-
realm = dependencies.realm,
364363
localEchoEventFactory = dependencies.localEchoEventFactory,
365364
decorator = createTimelineEventDecorator()
366365
)

matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/timeline/TimelineChunk.kt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package org.matrix.android.sdk.internal.session.room.timeline
1818

1919
import io.realm.OrderedCollectionChangeSet
2020
import io.realm.OrderedRealmCollectionChangeListener
21-
import io.realm.Realm
2221
import io.realm.RealmConfiguration
2322
import io.realm.RealmObjectChangeListener
2423
import io.realm.RealmQuery
@@ -48,7 +47,6 @@ import org.matrix.android.sdk.internal.session.sync.handler.room.ThreadsAwarenes
4847
import timber.log.Timber
4948
import java.util.Collections
5049
import java.util.concurrent.atomic.AtomicBoolean
51-
import java.util.concurrent.atomic.AtomicReference
5250

5351
/**
5452
* This is a wrapper around a ChunkEntity in the database.
@@ -72,7 +70,6 @@ internal class TimelineChunk(
7270
private val initialEventId: String?,
7371
private val onBuiltEvents: (Boolean) -> Unit,
7472
private val onEventsDeleted: () -> Unit,
75-
private val realm: AtomicReference<Realm>,
7673
private val decorator: TimelineEventDecorator,
7774
val localEchoEventFactory: LocalEchoEventFactory,
7875
) {
@@ -616,7 +613,6 @@ internal class TimelineChunk(
616613
onBuiltEvents = this.onBuiltEvents,
617614
onEventsDeleted = this.onEventsDeleted,
618615
decorator = this.decorator,
619-
realm = realm,
620616
localEchoEventFactory = localEchoEventFactory
621617
)
622618
}

matrix-sdk-android/src/main/java/org/matrix/android/sdk/internal/session/room/timeline/decorator/UiEchoDecorator.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ package org.matrix.android.sdk.internal.session.room.timeline.decorator
1919
import org.matrix.android.sdk.api.session.room.timeline.TimelineEvent
2020
import org.matrix.android.sdk.internal.session.room.timeline.UIEchoManager
2121

22-
internal class UiEchoDecorator(private val uiEchoManager: UIEchoManager?) : TimelineEventDecorator {
22+
internal class UiEchoDecorator(private val uiEchoManager: UIEchoManager) : TimelineEventDecorator {
2323

2424
override fun decorate(timelineEvent: TimelineEvent): TimelineEvent {
25-
return uiEchoManager?.decorateEventWithReactionUiEcho(timelineEvent) ?: timelineEvent
25+
return uiEchoManager.decorateEventWithReactionUiEcho(timelineEvent)
2626
}
2727
}

0 commit comments

Comments
 (0)