1
0
mirror of https://github.com/matrix-org/matrix-react-sdk.git synced 2025-07-28 15:22:05 +03:00

Use new pendingEventList functionality from matrix-js-sdk

Update react-sdk to use `pendingEventOrdering`==`detached` instead of
`end`. Look for pending events in the pendingEvent list, and use
MatrixClient.cancelPendingEvent to, uh, cancel pending events.
This commit is contained in:
Richard van der Hoff
2016-03-17 22:26:06 +00:00
parent d1dbce8adf
commit b93af2d536
4 changed files with 26 additions and 35 deletions

View File

@ -32,18 +32,9 @@ module.exports = {
event: event
});
});
dis.dispatch({
action: 'message_resend_started',
event: event
});
},
removeFromQueue: function(event) {
MatrixClientPeg.get().getScheduler().removeEventFromQueue(event);
var room = MatrixClientPeg.get().getRoom(event.getRoomId());
if (!room) {
return;
}
room.removeEvents([event.getId()]);
}
};
MatrixClientPeg.get().cancelPendingEvent(event);
},
};