give the client a chance to run room.updatePendingEvent after sending
give the client a chance to run room.updatePendingEvent after sending

before the next event is sent. This is needed to update the target id
if it was the local id of the event that was just sent.

matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk,matrix-org/matrix-js-sdk