diff --git a/src/models/room.js b/src/models/room.js index d72f801a8..91868af6b 100644 --- a/src/models/room.js +++ b/src/models/room.js @@ -1099,6 +1099,10 @@ Room.prototype._addLiveEvent = function(event, duplicateStrategy) { * unique transaction id. */ Room.prototype.addPendingEvent = function(event, txnId) { + if (event.isReplacement()) { + return; + } + if (event.status !== EventStatus.SENDING) { throw new Error("addPendingEvent called on an event with status " + event.status);