mirror of
1
Fork 0

[bugfix] Serialize empty conversation account list as empty list, not null (#3137)

This commit is contained in:
Vyr Cossont 2024-07-24 01:40:01 -07:00 committed by GitHub
parent 6533531cf1
commit db0a47126e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

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