diff --git a/syncapi/storage/postgres/relations_table.go b/syncapi/storage/postgres/relations_table.go index 5ed8059fb..87064ed7c 100644 --- a/syncapi/storage/postgres/relations_table.go +++ b/syncapi/storage/postgres/relations_table.go @@ -109,6 +109,9 @@ func (s *relationsStatements) DeleteRelation( _, err := stmt.ExecContext( ctx, roomID, childEventID, ) + if err == sql.ErrNoRows { + return nil + } return err }