Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Better support for inviting multiple people #403

Merged
merged 11 commits into from
Aug 11, 2016
Merged

Better support for inviting multiple people #403

merged 11 commits into from
Aug 11, 2016

Conversation

dbkr
Copy link
Member

@dbkr dbkr commented Aug 10, 2016

Pasting a list of addresses into the box will now pop up a dialog to confirm and show you the success / failure state of each address. It will also not die if it gets rate limited.

Fixes element-hq/element-web#1713
Requires: element-hq/element-web#1942

Pasting a list of addresses into the box will now pop up a dialog to confirm and show you the success / failure state of each address. It will also not die if it gets rate limited.

Fixes element-hq/element-web#1713
}
}
}).finally(function() {
self.setState({
Copy link
Member

Choose a reason for hiding this comment

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

this looks redundant? it will be done by the finally?

@richvdh richvdh assigned dbkr and unassigned richvdh Aug 10, 2016
Duplicated in `finally`
We now set them in the constructor
So that we can sensibly track the number completed by taking the length of it.
And make it actually cancel the process.
@dbkr
Copy link
Member Author

dbkr commented Aug 10, 2016

ptal

@dbkr dbkr assigned richvdh and unassigned dbkr Aug 10, 2016
@@ -41,20 +42,28 @@ export default class MultiInviteDialog extends React.Component {
}
}

componentWillUnmount() {
this._unmounted = true;
Copy link
Member

Choose a reason for hiding this comment

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

should we also be setting _canceled here? What happens if the user closes the dialog without clicking 'cancel'? I'm a bit confused about the difference between _unmounted and _canceled, and why we handle them differently in _inviteMore. Perhaps some comments would help?

Copy link
Member Author

Choose a reason for hiding this comment

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

Point - it should definitely cancel if you dismiss the dialog so I've just made them the same variable.

@richvdh richvdh assigned dbkr and unassigned richvdh Aug 10, 2016
Instead of both that and _unmounted
@dbkr dbkr assigned richvdh and unassigned dbkr Aug 11, 2016
@richvdh
Copy link
Member

richvdh commented Aug 11, 2016

lgtm except for the build failure

@richvdh richvdh assigned dbkr and unassigned richvdh Aug 11, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants