this will block if we have a pending redaction & reaction

so the reaction won't be aborted
This commit is contained in:
Bruno Windels 2021-06-23 11:45:24 +02:00
parent 442d4cce03
commit a1d24894eb

View file

@ -139,11 +139,6 @@ export class BaseMessageTile extends SimpleTile {
redactReaction(key, log = null) {
return this.logger.wrapOrRun(log, "redactReaction", async log => {
const redaction = this._entry.getAnnotationPendingRedaction(key);
if (redaction) {
log.set("already_redacting", true);
return;
}
const entry = await this._entry.getOwnAnnotationEntry(this._timeline, key);
if (entry) {
const updatePromise = new Promise(resolve => this._pendingReactionChangeCallback = resolve);