Remove useless variable
This commit is contained in:
parent
554d35fe96
commit
398e98ae85
|
@ -149,7 +149,6 @@ internal class DefaultCreateLocalRoomTask @Inject constructor(
|
||||||
}
|
}
|
||||||
|
|
||||||
val eventList = createLocalRoomEvents(createRoomBody)
|
val eventList = createLocalRoomEvents(createRoomBody)
|
||||||
val eventIds = ArrayList<String>(eventList.size)
|
|
||||||
val roomMemberContentsByUser = HashMap<String, RoomMemberContent?>()
|
val roomMemberContentsByUser = HashMap<String, RoomMemberContent?>()
|
||||||
|
|
||||||
for (event in eventList) {
|
for (event in eventList) {
|
||||||
|
@ -157,8 +156,6 @@ internal class DefaultCreateLocalRoomTask @Inject constructor(
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
eventIds.add(event.eventId)
|
|
||||||
|
|
||||||
val eventEntity = event.toEntity(roomId, SendState.SYNCED, null).copyToRealmOrIgnore(realm, EventInsertType.INCREMENTAL_SYNC)
|
val eventEntity = event.toEntity(roomId, SendState.SYNCED, null).copyToRealmOrIgnore(realm, EventInsertType.INCREMENTAL_SYNC)
|
||||||
if (event.stateKey != null) {
|
if (event.stateKey != null) {
|
||||||
CurrentStateEventEntity.getOrCreate(realm, roomId, event.stateKey, event.type).apply {
|
CurrentStateEventEntity.getOrCreate(realm, roomId, event.stateKey, event.type).apply {
|
||||||
|
|
Loading…
Reference in New Issue