Refactor remove resend_all_events and cancel_all_events dispatches

This commit is contained in:
Luke Barnard 2017-02-27 13:39:12 +00:00
parent b68b0e25c8
commit 7221900497
4 changed files with 17 additions and 28 deletions

View file

@ -159,10 +159,7 @@ export default React.createClass({
<button className="mx_Dialog_primary" autoFocus={ true }
onClick={() => {
this.props.onFinished();
dis.dispatch({
action: 'resend_all_events',
room: this.props.room,
});
Resend.resendUnsentEvents(this.props.room);
}}>
Send anyway
</button>