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

completely avoid local echo for edits for now

This commit is contained in:
Bruno Windels
2019-05-14 15:25:07 +01:00
parent f68a3dde46
commit df6012c58d

View File

@@ -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);