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
parent 4577a40b1e
commit e382687168
3 changed files with 33 additions and 1 deletions

View File

@ -197,6 +197,11 @@ func (user *User) RemFailedMessageID(messageID string) error {
})
}
// GetSyncStatus returns the user's sync status.
func (user *User) GetSyncStatus() SyncStatus {
return user.vault.getUser(user.userID).SyncStatus
}
// ClearSyncStatus clears the user's sync status.
func (user *User) ClearSyncStatus() error {
return user.vault.modUser(user.userID, func(data *UserData) {