Room directory: Fix crash

#4137

This is a quick fix. We should remove all forced unwrapping
This commit is contained in:
manuroe
2021-03-24 09:14:31 +01:00
parent d1c1afa2fc
commit eec78b8978
2 changed files with 2 additions and 1 deletions
@@ -97,7 +97,7 @@ extension DirectoryRoomTableViewCell: Themable {
numberOfUsersLabel.textColor = theme.textSecondaryColor
topicLabel.textColor = theme.textSecondaryColor
if viewModel.isJoined {
if let viewModel = viewModel, viewModel.isJoined {
joinButton.backgroundColor = theme.backgroundColor
joinButton.tintColor = theme.textSecondaryColor
joinButton.layer.borderWidth = 1.0