[bugfix] Include own account in conversation when no other accounts involved (#3387)

This commit is contained in:
tobi
2024-10-04 19:22:52 +02:00
committed by GitHub
parent f550f596fa
commit 8bd8c6fb45
4 changed files with 386 additions and 31 deletions

View File

@ -27,6 +27,10 @@ type Conversation struct {
// Is the conversation currently marked as unread?
Unread bool `json:"unread"`
// Participants in the conversation.
//
// If this is a conversation between no accounts (ie., a self-directed DM),
// this will include only the requesting account itself. Otherwise, it will
// include every other account in the conversation *except* the requester.
Accounts []Account `json:"accounts"`
// The last status in the conversation. May be `null`.
LastStatus *Status `json:"last_status"`