forked from mirrors/linphone-iphone
only admin can tap participant bar
This commit is contained in:
parent
9c8f9dec99
commit
451537bfc2
1 changed files with 8 additions and 6 deletions
|
|
@ -271,12 +271,14 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
}
|
||||
|
||||
- (IBAction)onAddClick:(id)sender {
|
||||
ChatConversationCreateView *view = VIEW(ChatConversationCreateView);
|
||||
view.tableController.notFirstTime = TRUE;
|
||||
view.isForEditing = !_create;
|
||||
view.isGroupChat = TRUE;
|
||||
view.tableController.contactsGroup = [_contacts mutableCopy];
|
||||
[PhoneMainView.instance popToView:view.compositeViewDescription];
|
||||
if (_create || _imAdmin) {
|
||||
ChatConversationCreateView *view = VIEW(ChatConversationCreateView);
|
||||
view.tableController.notFirstTime = TRUE;
|
||||
view.isForEditing = !_create;
|
||||
view.isGroupChat = TRUE;
|
||||
view.tableController.contactsGroup = [_contacts mutableCopy];
|
||||
[PhoneMainView.instance popToView:view.compositeViewDescription];
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - TableView
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue