(c identity.ConversationSummary)
| 26 | } |
| 27 | |
| 28 | func 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) |
no outgoing calls
no test coverage detected