This commit is contained in:
Valere 2021-03-19 18:55:29 +01:00
parent 681b5b3ddc
commit 872b383c4d
1 changed files with 4 additions and 4 deletions

View File

@ -71,11 +71,11 @@ class SpaceSettingsMenuBottomSheet : VectorBaseBottomSheetDialogFragment<BottomS
val session = activeSessionHolder.getSafeActiveSession() ?: return
val roomSummary = session.getRoomSummary(spaceArgs.spaceId)
roomSummary?.let { roomSummary ->
avatarRenderer.renderSpace(roomSummary.toMatrixItem(), views.roomAvatarImageView)
views.roomNameView.text = roomSummary.displayName
views.roomDescription.text = roomSummary.topic
roomSummary?.toMatrixItem()?.let {
avatarRenderer.renderSpace(it, views.roomAvatarImageView)
}
views.roomNameView.text = roomSummary?.displayName
views.roomDescription.text = roomSummary?.topic
val room = session.getRoom(spaceArgs.spaceId) ?: return