From 8bd8c6fb455d90c1ad0fe84430b7ea59bd1075f3 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Fri, 4 Oct 2024 19:22:52 +0200 Subject: [bugfix] Include own account in conversation when no other accounts involved (#3387) --- internal/api/model/conversation.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'internal/api') diff --git a/internal/api/model/conversation.go b/internal/api/model/conversation.go index ba961cecb..41ac7d6ba 100644 --- a/internal/api/model/conversation.go +++ b/internal/api/model/conversation.go @@ -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"` -- cgit v1.2.3