mirror of
https://github.com/element-hq/element-android
synced 2024-11-27 20:06:51 +03:00
Remove useless variable
This commit is contained in:
parent
554d35fe96
commit
398e98ae85
1 changed files with 0 additions and 3 deletions
|
@ -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 a new issue