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
Add "Retry" button to UDE
This commit is contained in:
@ -716,16 +716,16 @@ module.exports = React.createClass({
|
||||
},
|
||||
|
||||
onResendAllClick: function() {
|
||||
var eventsToResend = this._getUnsentMessages(this.state.room);
|
||||
eventsToResend.forEach(function(event) {
|
||||
Resend.resend(event);
|
||||
dis.dispatch({
|
||||
action: 'resend_all_events',
|
||||
room: this.state.room,
|
||||
});
|
||||
},
|
||||
|
||||
onCancelAllClick: function() {
|
||||
var eventsToResend = this._getUnsentMessages(this.state.room);
|
||||
eventsToResend.forEach(function(event) {
|
||||
Resend.removeFromQueue(event);
|
||||
dis.dispatch({
|
||||
action: 'cancel_all_events',
|
||||
room: this.state.room,
|
||||
});
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user