selection impossible when filtering in add room screen #5757 (#5758)

- Fixed
- Other minor code / UI tweaks
This commit is contained in:
Gil Eluard
2022-03-07 12:25:50 +01:00
committed by GitHub
parent 59038e18c1
commit cf015c4ef2
30 changed files with 64 additions and 31 deletions
@@ -69,6 +69,8 @@ typedef enum : NSUInteger {
@protocol RoomSettingsViewControllerDelegate <NSObject>
- (void)roomSettingsViewControllerDidLeaveRoom:(RoomSettingsViewController *)controller;
- (void)roomSettingsViewController:(RoomSettingsViewController *)controller didReplaceRoomWithReplacementId:(NSString *)newRoomId;
- (void)roomSettingsViewControllerDidCancel:(RoomSettingsViewController *)controller;
@@ -3667,7 +3667,11 @@ NSString *const kRoomSettingsAdvancedE2eEnabledCellViewIdentifier = @"kRoomSetti
[self startActivityIndicator];
[self->mxRoom leave:^{
[[LegacyAppDelegate theDelegate] restoreInitialDisplay:nil];
if (self.delegate) {
[self.delegate roomSettingsViewControllerDidLeaveRoom:self];
} else {
[[LegacyAppDelegate theDelegate] restoreInitialDisplay:nil];
}
} failure:^(NSError *error) {