mirror of https://github.com/vector-im/riot-web
Add removeFromQueue function to cancel sending a queued event
parent
08d7c0232a
commit
b110e315ec
|
@ -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()]);
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue