Skip to content
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

Merged
merged 4 commits into from
Apr 25, 2022

Conversation

phloux
Copy link

@phloux phloux commented Apr 15, 2022

@phloux phloux requested review from giomfo and yostyle April 15, 2022 06:35
Copy link
Contributor

@giomfo giomfo left a 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...

Copy link
Contributor

@giomfo giomfo left a 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
Copy link
Contributor

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
Copy link
Contributor

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])
Copy link
Contributor

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 (until we switch to the Element-ios contacts picker)

This button is
image

@@ -1216,21 +1216,11 @@ - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)

#pragma mark -

-(BOOL)isInviteButtonIndexPath:(NSIndexPath*)indexPath
Copy link
Contributor

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

Copy link
Contributor

@giomfo giomfo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@phloux phloux merged commit afc3524 into develop Apr 25, 2022
@phloux phloux deleted the phlpro/449-invite-to-join branch April 25, 2022 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants