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:
Pascal Precht 2022-10-13 13:26:01 +02:00 committed by r4bbit.eth
parent d9b44777c9
commit 616a58f5c9
1 changed files with 1 additions and 1 deletions

View File

@ -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,