mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-17 03:43:11 -06:00
Add docs for validateRedactions
Signed-off-by: Alex Chen <minecnly@gmail.com>
This commit is contained in:
parent
e9f824b958
commit
99859a8afc
|
|
@ -352,6 +352,9 @@ func (d *Database) fetchRedactionEvents(
|
|||
return
|
||||
}
|
||||
|
||||
// validateRedactions attempts to validate the given redactions.
|
||||
// Returns redactions that are successfully validated.
|
||||
// It will update the validation status in the database for the validated redactions.
|
||||
func (d *Database) validateRedactions(
|
||||
ctx context.Context,
|
||||
unvalidatedRedactions redactedToRedactionMap,
|
||||
|
|
|
|||
|
|
@ -977,6 +977,9 @@ func (d *SyncServerDatasource) fetchRedactionEvents(
|
|||
return
|
||||
}
|
||||
|
||||
// validateRedactions attempts to validate the given redactions.
|
||||
// Returns redactions that are successfully validated.
|
||||
// It will update the validation status in the database for the validated redactions.
|
||||
func (d *SyncServerDatasource) validateRedactions(
|
||||
ctx context.Context,
|
||||
txn *sql.Tx,
|
||||
|
|
|
|||
Loading…
Reference in a new issue