Remove useless variable

This commit is contained in:
Florian Renaud 2022-05-24 00:32:16 +02:00
parent 554d35fe96
commit 398e98ae85
1 changed files with 0 additions and 3 deletions

View File

@ -149,7 +149,6 @@ internal class DefaultCreateLocalRoomTask @Inject constructor(
}
val eventList = createLocalRoomEvents(createRoomBody)
val eventIds = ArrayList<String>(eventList.size)
val roomMemberContentsByUser = HashMap<String, RoomMemberContent?>()
for (event in eventList) {
@ -157,8 +156,6 @@ internal class DefaultCreateLocalRoomTask @Inject constructor(
continue
}
eventIds.add(event.eventId)
val eventEntity = event.toEntity(roomId, SendState.SYNCED, null).copyToRealmOrIgnore(realm, EventInsertType.INCREMENTAL_SYNC)
if (event.stateKey != null) {
CurrentStateEventEntity.getOrCreate(realm, roomId, event.stateKey, event.type).apply {