mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-03-18 20:29:10 +03:00
More cleanup
This commit is contained in:
parent
19e218ead8
commit
4222761363
3 changed files with 2 additions and 7 deletions
|
@ -360,7 +360,6 @@ internal class LoadTimelineStrategy constructor(
|
|||
initialEventId = mode.originEventId(),
|
||||
onBuiltEvents = dependencies.onEventsUpdated,
|
||||
onEventsDeleted = dependencies.onEventsDeleted,
|
||||
realm = dependencies.realm,
|
||||
localEchoEventFactory = dependencies.localEchoEventFactory,
|
||||
decorator = createTimelineEventDecorator()
|
||||
)
|
||||
|
|
|
@ -18,7 +18,6 @@ package org.matrix.android.sdk.internal.session.room.timeline
|
|||
|
||||
import io.realm.OrderedCollectionChangeSet
|
||||
import io.realm.OrderedRealmCollectionChangeListener
|
||||
import io.realm.Realm
|
||||
import io.realm.RealmConfiguration
|
||||
import io.realm.RealmObjectChangeListener
|
||||
import io.realm.RealmQuery
|
||||
|
@ -48,7 +47,6 @@ import org.matrix.android.sdk.internal.session.sync.handler.room.ThreadsAwarenes
|
|||
import timber.log.Timber
|
||||
import java.util.Collections
|
||||
import java.util.concurrent.atomic.AtomicBoolean
|
||||
import java.util.concurrent.atomic.AtomicReference
|
||||
|
||||
/**
|
||||
* This is a wrapper around a ChunkEntity in the database.
|
||||
|
@ -72,7 +70,6 @@ internal class TimelineChunk(
|
|||
private val initialEventId: String?,
|
||||
private val onBuiltEvents: (Boolean) -> Unit,
|
||||
private val onEventsDeleted: () -> Unit,
|
||||
private val realm: AtomicReference<Realm>,
|
||||
private val decorator: TimelineEventDecorator,
|
||||
val localEchoEventFactory: LocalEchoEventFactory,
|
||||
) {
|
||||
|
@ -616,7 +613,6 @@ internal class TimelineChunk(
|
|||
onBuiltEvents = this.onBuiltEvents,
|
||||
onEventsDeleted = this.onEventsDeleted,
|
||||
decorator = this.decorator,
|
||||
realm = realm,
|
||||
localEchoEventFactory = localEchoEventFactory
|
||||
)
|
||||
}
|
||||
|
|
|
@ -19,9 +19,9 @@ package org.matrix.android.sdk.internal.session.room.timeline.decorator
|
|||
import org.matrix.android.sdk.api.session.room.timeline.TimelineEvent
|
||||
import org.matrix.android.sdk.internal.session.room.timeline.UIEchoManager
|
||||
|
||||
internal class UiEchoDecorator(private val uiEchoManager: UIEchoManager?) : TimelineEventDecorator {
|
||||
internal class UiEchoDecorator(private val uiEchoManager: UIEchoManager) : TimelineEventDecorator {
|
||||
|
||||
override fun decorate(timelineEvent: TimelineEvent): TimelineEvent {
|
||||
return uiEchoManager?.decorateEventWithReactionUiEcho(timelineEvent) ?: timelineEvent
|
||||
return uiEchoManager.decorateEventWithReactionUiEcho(timelineEvent)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue