Don't copy teacher from previous lesson to completed (#341)

This commit is contained in:
Mikołaj Pich
2019-05-18 13:03:39 +02:00
committed by Rafał Borcz
parent bf6b857a3e
commit 1f5088cfc9
3 changed files with 14 additions and 11 deletions

View File

@ -35,8 +35,7 @@ class TimetableRepository @Inject constructor(
item.apply {
old.singleOrNull { this.start == it.start }?.let {
return@map copy(
room = if (room.isEmpty()) it.room else room,
teacher = if (teacher.isEmpty()) it.teacher else teacher
room = if (room.isEmpty()) it.room else room
)
}
}