fix(GODT-2774): only check telemetry availability for the current user.

This commit is contained in:
Romain LE JEUNE
2023-07-06 12:50:12 +02:00
parent 40c48ba804
commit f545f30ec0
3 changed files with 6 additions and 9 deletions

View File

@ -297,8 +297,7 @@ func (bridge *Bridge) SetColorScheme(colorScheme string) error {
// Note: it does not clear the keychain. The only entry in the keychain is the vault password,
// which we need at next startup to decrypt the vault.
func (bridge *Bridge) FactoryReset(ctx context.Context) {
useTelemetry := bridge.IsTelemetryAvailable(ctx)
useTelemetry := !bridge.GetTelemetryDisabled()
// Delete all the users.
safe.Lock(func() {
for _, user := range bridge.users {