From c6a3fcaedce0321c73b2a60b8933b8d9b9819618 Mon Sep 17 00:00:00 2001 From: ismailgulek Date: Wed, 23 Sep 2020 18:24:12 +0300 Subject: [PATCH] Update Riot/Modules/Room/RoomInfo/RoomInfoList/Views/RoomInfoBasicView.swift Co-authored-by: SBiOSoftWhare --- .../Room/RoomInfo/RoomInfoList/Views/RoomInfoBasicView.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Riot/Modules/Room/RoomInfo/RoomInfoList/Views/RoomInfoBasicView.swift b/Riot/Modules/Room/RoomInfo/RoomInfoList/Views/RoomInfoBasicView.swift index 1f3567d16..90e385719 100644 --- a/Riot/Modules/Room/RoomInfo/RoomInfoList/Views/RoomInfoBasicView.swift +++ b/Riot/Modules/Room/RoomInfo/RoomInfoList/Views/RoomInfoBasicView.swift @@ -60,7 +60,7 @@ class RoomInfoBasicView: UIView { badgeImageView.image = viewData.encryptionImage roomNameLabel.text = viewData.roomDisplayName roomAddressLabel.text = viewData.mainRoomAlias - roomAddressLabel.isHidden = (roomAddressLabel.text?.count ?? 0) == 0 + roomAddressLabel.isHidden = roomAddressLabel.text?.isEmpty ?? true roomTopicLabel.text = viewData.roomTopic roomTopicLabel.isHidden = (roomTopicLabel.text?.count ?? 0) == 0 }