You've already forked matrix-js-sdk
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:
@@ -1078,10 +1078,6 @@ Room.prototype._addLiveEvent = function(event, duplicateStrategy) {
|
|||||||
* unique transaction id.
|
* unique transaction id.
|
||||||
*/
|
*/
|
||||||
Room.prototype.addPendingEvent = function(event, txnId) {
|
Room.prototype.addPendingEvent = function(event, txnId) {
|
||||||
if (event.isRelation("m.replace")) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (event.status !== EventStatus.SENDING) {
|
if (event.status !== EventStatus.SENDING) {
|
||||||
throw new Error("addPendingEvent called on an event with status " +
|
throw new Error("addPendingEvent called on an event with status " +
|
||||||
event.status);
|
event.status);
|
||||||
|
|||||||
Reference in New Issue
Block a user