Do not change stored latest configuration on cancel

This commit is contained in:
Ivan Grachev 2022-08-19 13:39:22 +03:00
parent 815073647a
commit 8b45a64396

View File

@ -66,7 +66,7 @@ struct ResponseToExtension {
var bodyJSON = body?.json ?? [:]
json.merge(bodyJSON) { (current, _) in current }
if request.body.value.responseUpdatesStoredConfiguration {
if request.body.value.responseUpdatesStoredConfiguration, error == nil {
if !bodyJSON.isEmpty {
bodyJSON["provider"] = provider
}