Skip to content
Snippets Groups Projects
Commit 82aa6035 authored by David Baker's avatar David Baker
Browse files

Merge in resend support

parent a8eb93bd
Branches
Tags
No related merge requests found
......@@ -23,6 +23,28 @@ module.exports = {
var actions = MatrixClientPeg.get().getPushActionsForEvent(this.props.mxEvent);
if (!actions || !actions.tweaks) { return false; }
return actions.tweaks.highlight;
},
getInitialState: function() {
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
});
})
}
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment