fix(GODT-2318): Remove gluon DB if label sync was incomplete

This commit is contained in:
James Houlahan
2023-01-31 11:04:19 +01:00
committed by Jakub Cuth
parent 367c505444
commit 5ea53ea5c0
2 changed files with 25 additions and 1 deletions

View File

@ -430,6 +430,8 @@ func (user *User) NewIMAPConnectors() (map[string]connector.Connector, error) {
}
// SendMail sends an email from the given address to the given recipients.
//
// nolint:funlen
func (user *User) SendMail(authID string, from string, to []string, r io.Reader) error {
if user.vault.SyncStatus().IsComplete() {
defer user.goPollAPIEvents(true)