1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-05 17:02:07 +03:00

don't block local echo for m.replace anymore!

This commit is contained in:
Bruno Windels
2019-05-16 14:40:55 +01:00
parent 21c8c76dc3
commit 261ab7ae68

View File

@@ -1078,10 +1078,6 @@ Room.prototype._addLiveEvent = function(event, duplicateStrategy) {
* unique transaction id.
*/
Room.prototype.addPendingEvent = function(event, txnId) {
if (event.isRelation("m.replace")) {
return;
}
if (event.status !== EventStatus.SENDING) {
throw new Error("addPendingEvent called on an event with status " +
event.status);