1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-12-05 17:02:07 +03:00
This commit is contained in:
Bruno Windels
2019-06-07 17:05:02 +02:00
parent f1336a5ce7
commit 3f917b39c9

View File

@@ -1143,7 +1143,8 @@ Room.prototype.addPendingEvent = function(event, txnId) {
if (event.getType() === "m.room.redaction") {
const redactId = event.event.redacts;
let redactedEvent = this._pendingEventList && this._pendingEventList.find(e => e.getId() === redactId);
let redactedEvent = this._pendingEventList &&
this._pendingEventList.find(e => e.getId() === redactId);
if (!redactedEvent) {
redactedEvent = this.getUnfilteredTimelineSet().findEventById(redactId);
}