[#13647] Avoid rewriting of `response.Settings` on new acc sync

This commit is contained in:
Roman Volosovskyi 2022-08-03 11:22:50 +02:00
parent d1ef1a3e31
commit 0135cc155b
No known key found for this signature in database
GPG Key ID: 0238A4B5ECEE70DE
2 changed files with 11 additions and 2 deletions

View File

@ -1 +1 @@
0.104.1 0.104.2

View File

@ -2043,7 +2043,16 @@ func (m *Messenger) HandleSyncWalletAccount(state *ReceivedMessageState, message
if err == nil { if err == nil {
state.Response.Accounts = accs state.Response.Accounts = accs
state.Response.Settings = []*settings.SyncSettingField{{settings.LatestDerivedPath, newPath}} if state.Response.Settings == nil {
state.Response.Settings = []*settings.SyncSettingField{}
}
state.Response.Settings = append(
state.Response.Settings,
&settings.SyncSettingField{
SettingField: settings.LatestDerivedPath,
Value: newPath,
})
} }
return err return err