diff --git a/src/controllers/molecules/MessageTile.js b/src/controllers/molecules/MessageTile.js index 47b616e724..4a7ce7e1df 100644 --- a/src/controllers/molecules/MessageTile.js +++ b/src/controllers/molecules/MessageTile.js @@ -29,22 +29,6 @@ module.exports = { return { resending: false }; - }, - - onResend: function() { - var self = this; - self.setState({ - resending: true - }); - MatrixClientPeg.get().resendEvent( - this.props.mxEvent, MatrixClientPeg.get().getRoom( - this.props.mxEvent.getRoomId() - ) - ).finally(function() { - self.setState({ - resending: false - }); - }) } }; diff --git a/src/controllers/organisms/RoomView.js b/src/controllers/organisms/RoomView.js index ea84746bab..8ca2d7233b 100644 --- a/src/controllers/organisms/RoomView.js +++ b/src/controllers/organisms/RoomView.js @@ -67,6 +67,7 @@ module.exports = { switch (payload.action) { case 'message_send_failed': case 'message_sent': + case 'message_resend_started': this.setState({ room: MatrixClientPeg.get().getRoom(this.props.roomId) });