You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-18 09:22:18 +03:00
Refactor remove resend_all_events and cancel_all_events dispatches
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user