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
get the txnId from the correct place to delete event after remote echo
This commit is contained in:
@@ -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) {
|
||||||
|
|||||||
Reference in New Issue
Block a user