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

get the txnId from the correct place to delete event after remote echo

This commit is contained in:
Bruno Windels
2019-06-11 18:24:48 +02:00
parent 7d2f7fae45
commit 624c6f0a6e

View File

@@ -1215,7 +1215,7 @@ Room.prototype._handleRemoteEcho = function(remoteEvent, localEvent) {
const oldStatus = localEvent.status; const oldStatus = localEvent.status;
// no longer pending // no longer pending
delete this._txnToEvent[remoteEvent.transaction_id]; delete this._txnToEvent[remoteEvent.getUnsigned().transaction_id];
// if it's in the pending list, remove it // if it's in the pending list, remove it
if (this._pendingEventList) { if (this._pendingEventList) {