fix(MessengerResponse): ensure `savedAddresses` response as `omitempty`
Otherwise the json response will be `null` instead of an empty array (which broke desktop): https://github.com/status-im/status-desktop/pull/7888
This commit is contained in:
parent
d9b44777c9
commit
616a58f5c9
|
@ -97,7 +97,7 @@ func (r *MessengerResponse) MarshalJSON() ([]byte, error) {
|
|||
DiscordCategories []*discord.Category `json:"discordCategories,omitempty"`
|
||||
DiscordChannels []*discord.Channel `json:"discordChannels,omitempty"`
|
||||
DiscordOldestMessageTimestamp int `json:"discordOldestMessageTimestamp"`
|
||||
SavedAddresses []*wallet.SavedAddress `json:"savedAddresses"`
|
||||
SavedAddresses []*wallet.SavedAddress `json:"savedAddresses,omitempty"`
|
||||
}{
|
||||
Contacts: r.Contacts,
|
||||
Installations: r.Installations,
|
||||
|
|
Loading…
Reference in New Issue