-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Left panel] add an option "Inviter à rejoindre Tchap" (#449) #506
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm still testing, I share my first comments
Can you clean the ContactsViewController by removing the related code promptUserToFillAnEmailToInvite
...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tests to invite a new contact by email are ok
But the cleaning in ContactsViewController has been to strong, it broke the possibility to invite someone by email in an existing room (see my comments, we would have to keep more code until we switch to the Element contacts picker
self.sideMenuNavigationViewController.dismiss(animated: true) { | ||
self.delegate?.sideMenuCoordinator(self, didTapMenuItem: menuItem, fromSourceView: sourceView) | ||
} | ||
break |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure break
is useful here in swift
-(BOOL)isInviteByLinkButtonIndexPath:(NSIndexPath*)indexPath | ||
{ | ||
return (indexPath.section == inviteByLinkButtonSection); | ||
} | ||
|
||
-(BOOL)isAddEmailButtonIndexPath:(NSIndexPath*)indexPath |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@phlniji we have to keep this code to be able to invite by email in an existing room
@@ -482,16 +350,6 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath | |||
return; | |||
} | |||
|
|||
// Check whether the user wants to add manually some email into the list | |||
if ([self.contactsDataSource isAddEmailButtonIndexPath:indexPath]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -1216,21 +1216,11 @@ - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *) | |||
|
|||
#pragma mark - | |||
|
|||
-(BOOL)isInviteButtonIndexPath:(NSIndexPath*)indexPath |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have to remove this method in ContactsDataSource.h too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
#449