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
|
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(
|
func (d *Database) validateRedactions(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
unvalidatedRedactions redactedToRedactionMap,
|
unvalidatedRedactions redactedToRedactionMap,
|
||||||
|
|
|
||||||
|
|
@ -977,6 +977,9 @@ func (d *SyncServerDatasource) fetchRedactionEvents(
|
||||||
return
|
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(
|
func (d *SyncServerDatasource) validateRedactions(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
txn *sql.Tx,
|
txn *sql.Tx,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue