mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-20 00:24:43 +02:00
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:
@@ -2034,11 +2034,11 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
self.mediaPickerPresenter = mediaPickerPresenter;
|
||||
}
|
||||
|
||||
- (void)showRoomCreationModalWithBubbleData:(id<MXKRoomBubbleCellDataStoring>) bubbleData
|
||||
- (void)showRoomCreationModal
|
||||
{
|
||||
[self.roomCreationModalCoordinatorBridgePresenter dismissWithAnimated:NO completion:nil];
|
||||
|
||||
self.roomCreationModalCoordinatorBridgePresenter = [[RoomCreationModalCoordinatorBridgePresenter alloc] initWithSession:self.mainSession bubbleData:bubbleData roomState:self.roomDataSource.roomState];
|
||||
self.roomCreationModalCoordinatorBridgePresenter = [[RoomCreationModalCoordinatorBridgePresenter alloc] initWithSession:self.mainSession roomState:self.roomDataSource.roomState];
|
||||
self.roomCreationModalCoordinatorBridgePresenter.delegate = self;
|
||||
[self.roomCreationModalCoordinatorBridgePresenter presentFrom:self animated:YES];
|
||||
}
|
||||
@@ -3221,7 +3221,7 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
// Show contextual menu on single tap if bubble is not collapsed
|
||||
if (bubbleData.collapsed)
|
||||
{
|
||||
[self showRoomCreationModalWithBubbleData:bubbleData];
|
||||
// Do nothing here as we display room creation modal only if the user taps on the room name
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -3475,6 +3475,10 @@ static CGSize kThreadListBarButtonItemImageSize;
|
||||
{
|
||||
[self showRoomTopicChange];
|
||||
}
|
||||
else if ([actionIdentifier isEqualToString:RoomCreationIntroCell.tapOnRoomName])
|
||||
{
|
||||
[self showRoomCreationModal];
|
||||
}
|
||||
else
|
||||
{
|
||||
// Keep default implementation for other actions
|
||||
|
||||
Reference in New Issue
Block a user