Private
Public Access
1
0

Kordophone-2.6: lastMessage in /conversations

This commit is contained in:
2023-08-10 00:42:21 -07:00
parent f13a809f1e
commit 56ad3a49ea
4 changed files with 8 additions and 6 deletions

View File

@@ -9,11 +9,11 @@ import (
type Message struct {
Text string `json:"text"`
Guid string `json:"guid"`
Sender *string `json:"sender"` // Optional: nil means from "me"
Sender *string `json:"sender,omitempty"` // Optional: nil means from "me"
Date time.Time `json:"date"`
// Map of attachment GUID to attachment metadata
Attachments *map[string]AttributionInfo `json:"attachmentMetadata"` // Optional
Attachments *map[string]AttributionInfo `json:"attachmentMetadata,omitempty"` // Optional
}
type AttributionInfo struct {