diff --git a/src/Resend.js b/src/Resend.js index b1132750b8..0e67a306bd 100644 --- a/src/Resend.js +++ b/src/Resend.js @@ -21,4 +21,13 @@ module.exports = { event: event }); }, + + removeFromQueue: function(event) { + MatrixClientPeg.get().getScheduler().removeEventFromQueue(event); + var room = MatrixClientPeg.get().getRoom(event.getRoomId()); + if (!room) { + return; + } + room.removeEvents([event.getId()]); + } }; \ No newline at end of file