Room preview unexpectedly triggering within the room (#6255)

* Room preview unexpectedly triggering within the room

- The room creation modal is now triggered only when the user taps the room name label
- Also fix empty room creation modal view
This commit is contained in:
Gil Eluard
2022-06-10 10:41:37 +02:00
committed by GitHub
parent 51b2a1ce4d
commit ced9858a06
7 changed files with 61 additions and 27 deletions
@@ -28,6 +28,7 @@ class RoomCreationIntroCell: MXKRoomBubbleTableViewCell {
static let tapOnAvatarView = "RoomCreationIntroCellTapOnAvatarView"
static let tapOnAddTopic = "RoomCreationIntroCellTapOnAddTopic"
static let tapOnRoomName = "RoomCreationIntroCellTapOnRoomName"
static let tapOnAddParticipants = "RoomCreationIntroCellTapOnAddParticipants"
// MARK: - Properties
@@ -156,6 +157,10 @@ class RoomCreationIntroCell: MXKRoomBubbleTableViewCell {
self?.notifyDelegate(with: RoomCreationIntroCell.tapOnAddTopic)
}
roomCellContentView.didTapRoomName = { [weak self] in
self?.notifyDelegate(with: RoomCreationIntroCell.tapOnRoomName)
}
roomCellContentView.didTapAddParticipants = { [weak self] in
self?.notifyDelegate(with: RoomCreationIntroCell.tapOnAddParticipants)
}