Skip to content

Commit

Permalink
[bugfix] Serialize empty conversation account list as empty list, not…
Browse files Browse the repository at this point in the history
… null (#3137)
  • Loading branch information
VyrCossont authored Jul 24, 2024
1 parent 6533531 commit db0a471
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions internal/typeutils/internaltofrontend.go
Original file line number Diff line number Diff line change
Expand Up @@ -1752,8 +1752,9 @@ func (c *Converter) ConversationToAPIConversation(
mutes *usermute.CompiledUserMuteList,
) (*apimodel.Conversation, error) {
apiConversation := &apimodel.Conversation{
ID: conversation.ID,
Unread: !*conversation.Read,
ID: conversation.ID,
Unread: !*conversation.Read,
Accounts: []apimodel.Account{},
}
for _, account := range conversation.OtherAccounts {
var apiAccount *apimodel.Account
Expand Down

0 comments on commit db0a471

Please sign in to comment.