From db0a47126eb1b960c86fff071e968834c098a1a3 Mon Sep 17 00:00:00 2001 From: Vyr Cossont Date: Wed, 24 Jul 2024 01:40:01 -0700 Subject: [PATCH] [bugfix] Serialize empty conversation account list as empty list, not null (#3137) --- internal/typeutils/internaltofrontend.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/internal/typeutils/internaltofrontend.go b/internal/typeutils/internaltofrontend.go index c194360c1..29d972e48 100644 --- a/internal/typeutils/internaltofrontend.go +++ b/internal/typeutils/internaltofrontend.go @@ -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