Skip to content

Commit 477c733

Browse files
committed
fix: renamed telemetry_id to remote_id when export/import settings (#2955)
1 parent 5d035a7 commit 477c733

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Kit/plugins/Store.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public class Store {
108108
public func export(to url: URL) {
109109
guard let id = Bundle.main.bundleIdentifier,
110110
var dictionary = self.defaults.persistentDomain(forName: id) else { return }
111-
dictionary.removeValue(forKey: "telemetry_id")
111+
dictionary.removeValue(forKey: "remote_id")
112112
dictionary.removeValue(forKey: "access_token")
113113
dictionary.removeValue(forKey: "refresh_token")
114114
NSDictionary(dictionary: dictionary).write(to: url, atomically: true)
@@ -118,7 +118,7 @@ public class Store {
118118
guard let id = Bundle.main.bundleIdentifier,
119119
let dict = NSDictionary(contentsOf: url) as? [String: Any] else { return }
120120

121-
let keysToPreserve = ["telemetry_id", "access_token", "refresh_token"]
121+
let keysToPreserve = ["remote_id", "access_token", "refresh_token"]
122122
var importedDict = dict
123123

124124
for key in keysToPreserve {

0 commit comments

Comments
 (0)