mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-24 10:32:46 +02:00
SP2: Adding Rooms to Spaces #523o
- check permission before adding room - Added join button in explore room screens
This commit is contained in:
@@ -309,6 +309,22 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (void)createNewRoom
|
||||
{
|
||||
if (recentsDataSource.currentSpace) {
|
||||
[recentsDataSource.currentSpace canAddRoomWithCompletion:^(BOOL canAddRoom) {
|
||||
if (canAddRoom) {
|
||||
[super createNewRoom];
|
||||
} else {
|
||||
[[AppDelegate theDelegate] showAlertWithTitle:[VectorL10n roomRecentsCreateEmptyRoom]
|
||||
message:[VectorL10n spacesAddRoomMissingPermissionMessage]];
|
||||
}
|
||||
}];
|
||||
} else {
|
||||
[super createNewRoom];
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - UITableViewDataSource
|
||||
|
||||
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
|
||||
|
||||
Reference in New Issue
Block a user