mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-01-27 09:31:20 +01:00
Clean and add Changelog
This commit is contained in:
parent
80d19fa497
commit
4cc80162ca
1
changelog.d/5297.misc
Normal file
1
changelog.d/5297.misc
Normal file
@ -0,0 +1 @@
|
||||
Improve some internal realm usages.
|
@ -17,7 +17,6 @@
|
||||
package org.matrix.android.sdk.internal.session.room.create
|
||||
|
||||
import com.zhuinden.monarchy.Monarchy
|
||||
import io.realm.Realm
|
||||
import io.realm.RealmConfiguration
|
||||
import kotlinx.coroutines.TimeoutCancellationException
|
||||
import org.matrix.android.sdk.api.failure.Failure
|
||||
@ -106,7 +105,7 @@ internal class DefaultCreateRoomTask @Inject constructor(
|
||||
throw CreateRoomFailure.CreatedWithTimeout(roomId)
|
||||
}
|
||||
|
||||
awaitTransaction(realmConfiguration){
|
||||
awaitTransaction(realmConfiguration) {
|
||||
RoomSummaryEntity.where(it, roomId).findFirst()?.lastActivityTime = System.currentTimeMillis()
|
||||
}
|
||||
|
||||
|
@ -16,7 +16,6 @@
|
||||
|
||||
package org.matrix.android.sdk.internal.session.room.membership.joining
|
||||
|
||||
import io.realm.Realm
|
||||
import io.realm.RealmConfiguration
|
||||
import kotlinx.coroutines.TimeoutCancellationException
|
||||
import org.matrix.android.sdk.api.session.events.model.toContent
|
||||
@ -90,7 +89,7 @@ internal class DefaultJoinRoomTask @Inject constructor(
|
||||
} catch (exception: TimeoutCancellationException) {
|
||||
throw JoinRoomFailure.JoinedWithTimeout
|
||||
}
|
||||
awaitTransaction(realmConfiguration){
|
||||
awaitTransaction(realmConfiguration) {
|
||||
RoomSummaryEntity.where(it, roomId).findFirst()?.lastActivityTime = System.currentTimeMillis()
|
||||
}
|
||||
setReadMarkers(roomId)
|
||||
|
@ -457,7 +457,6 @@ internal class TimelineChunk(private val chunkEntity: ChunkEntity,
|
||||
if (insertions.isNotEmpty() || modifications.isNotEmpty()) {
|
||||
onBuiltEvents(true)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private fun getNextDisplayIndex(direction: Timeline.Direction): Int? {
|
||||
|
Loading…
x
Reference in New Issue
Block a user