Fix logs when deleting local room

This commit is contained in:
Florian Renaud 2022-07-04 17:41:00 +02:00
parent 8a5a47c6a5
commit f4b50f1e0f
1 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ internal class DefaultDeleteLocalRoomTask @Inject constructor(
?.also { Timber.i("## DeleteLocalRoomTask - TimelineEventEntity - delete ${it.size} entries") }
?.deleteAllFromRealm()
ChunkEntity.where(realm, roomId = roomId).findAll()
?.also { Timber.i("## DeleteLocalRoomTask - RoomMemberSummaryEntity - delete ${it.size} entries") }
?.also { Timber.i("## DeleteLocalRoomTask - ChunkEntity - delete ${it.size} entries") }
?.deleteAllFromRealm()
RoomSummaryEntity.where(realm, roomId = roomId).findAll()
?.also { Timber.i("## DeleteLocalRoomTask - RoomSummaryEntity - delete ${it.size} entries") }
@ -71,7 +71,7 @@ internal class DefaultDeleteLocalRoomTask @Inject constructor(
?.deleteAllFromRealm()
}
} else {
Timber.i("## DeleteLocalRoomTask - Failed to remove room id $roomId: not a local room")
Timber.i("## DeleteLocalRoomTask - Failed to remove room with id $roomId: not a local room")
}
}
}