prevent removePendingEvent being called when not in detached mode
prevent removePendingEvent being called when not in detached mode

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