Fix unused variables

This commit is contained in:
Valere 2021-05-28 12:10:20 +02:00
parent 871360754e
commit 8366437147
2 changed files with 1 additions and 2 deletions

View file

@ -174,7 +174,7 @@ class MatrixToRoomSpaceFragment @Inject constructor(
}
}
val images = listOf(views.knownMember1, views.knownMember2, views.knownMember3, views.knownMember4, views.knownMember5)
listOf(views.knownMember1, views.knownMember2, views.knownMember3, views.knownMember4, views.knownMember5)
.onEach { it.isGone = true }
when (state.peopleYouKnow) {
is Success -> {

View file

@ -70,7 +70,6 @@ class SpaceSettingsController @Inject constructor(
RoomSettingsViewState.AvatarAction.None -> {
// Use the current value
avatarRenderer(host.avatarRenderer)
val mxItem = roomSummary.toMatrixItem()
// We do not want to use the fallback avatar url, which can be the other user avatar, or the current user avatar.
matrixItem(roomSummary.toMatrixItem().updateAvatar(data.currentRoomAvatarUrl))
}