Skip to content

Commit

Permalink
Clarify before redaction event timing
Browse files Browse the repository at this point in the history
  • Loading branch information
jryans committed May 13, 2019
1 parent 00851df commit f411d50
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/models/relations.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,12 @@ export default class Relations extends EventEmitter {
}

/**
* For relations that are about to be redacted, remove them from aggregation
* data sets and emit an update event.
* For relations that have been redacted, we want to remove them from
* aggregation data sets and emit an update event.
*
* To do so, we listen for `Room.beforeRedaction`, which happens:
* - after the server accepted the redaction and remote echoed back to us
* - before the original event has been marked redacted in the client
*
* @param {MatrixEvent} redactedEvent
* The original relation event that is about to be redacted.
Expand Down

0 comments on commit f411d50

Please sign in to comment.