mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
“Back” button in chatrooms should now behave more in line with what is expected : return to the chatlist view in most cases
This commit is contained in:
parent
9ab70c60fe
commit
da08af7e3f
1 changed files with 8 additions and 1 deletions
|
|
@ -781,7 +781,14 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
#pragma mark - Action Functions
|
||||
|
||||
- (IBAction)onBackClick:(id)event {
|
||||
[PhoneMainView.instance popCurrentView];
|
||||
NSString *previousViewName = [PhoneMainView.instance getPreviousViewName];
|
||||
if ([previousViewName isEqualToString:@"ContactDetailsView"]) {
|
||||
ContactDetailsView *view = VIEW(ContactDetailsView);
|
||||
[PhoneMainView.instance popToView:view.compositeViewDescription];
|
||||
} else {
|
||||
ChatsListView *view = VIEW(ChatsListView);
|
||||
[PhoneMainView.instance popToView:view.compositeViewDescription];
|
||||
}
|
||||
}
|
||||
|
||||
- (IBAction)onEditClick:(id)event {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue