Add removeFromQueue function to cancel sending a queued event

This commit is contained in:
Kegan Dougal 2015-12-07 11:36:28 +00:00
parent 08d7c0232a
commit b110e315ec

View file

@ -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()]);
}
};