fix: deleting inbox records that senders have been deleted (#2743)

Deleting inbox records that senders have been deleted
This commit is contained in:
Wen Sun
2024-01-11 22:29:22 +09:00
committed by GitHub
parent 79b68222ff
commit 6cfd94cc69
6 changed files with 51 additions and 0 deletions

View File

@ -66,6 +66,9 @@ func (d *DB) Vacuum(ctx context.Context) error {
if err := vacuumMemoRelations(ctx, tx); err != nil {
return err
}
if err := vacuumInbox(ctx, tx); err != nil {
return err
}
if err := vacuumTag(ctx, tx); err != nil {
// Prevent revive warning.
return err