Refactor remove resend_all_events and cancel_all_events dispatches
This commit is contained in:
parent
b68b0e25c8
commit
7221900497
4 changed files with 17 additions and 28 deletions
|
@ -716,17 +716,11 @@ module.exports = React.createClass({
|
|||
},
|
||||
|
||||
onResendAllClick: function() {
|
||||
dis.dispatch({
|
||||
action: 'resend_all_events',
|
||||
room: this.state.room,
|
||||
});
|
||||
Resend.resendUnsentEvents(this.state.room);
|
||||
},
|
||||
|
||||
onCancelAllClick: function() {
|
||||
dis.dispatch({
|
||||
action: 'cancel_all_events',
|
||||
room: this.state.room,
|
||||
});
|
||||
Resend.cancelUnsentEvents(this.state.room);
|
||||
},
|
||||
|
||||
onJoinButtonClicked: function(ev) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue