MCPcopy Create free account
hub / github.com/Mnexa-AI/e2a / conversationSummaryView

Function conversationSummaryView

internal/httpapi/conversations.go:28–40  ·  view source on GitHub ↗
(c identity.ConversationSummary)

Source from the content-addressed store, hash-verified

26}
27
28func conversationSummaryView(c identity.ConversationSummary) ConversationSummaryView {
29 return ConversationSummaryView{
30 ID: c.ID,
31 LastMessageAt: c.LastMessageAt.UTC(),
32 FirstMessageAt: c.FirstMessageAt.UTC(),
33 MessageCount: c.MessageCount,
34 InboundCount: c.InboundCount,
35 OutboundCount: c.OutboundCount,
36 HasUnread: c.HasUnread,
37 LatestSubject: c.LatestSubject,
38 LatestSender: c.LatestSender,
39 }
40}
41
42// ConversationDetailView is the single-conversation shape: the summary
43// fields (flattened via embedding, matching the legacy top-level layout)

Callers 2

handleGetConversationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected