Add LastUserMessage field to the Chat struct

This commit is contained in:
Pavel 2024-10-14 17:44:28 +03:00 committed by GitHub
commit 7b80d3d542
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -351,6 +351,7 @@ type (
Customer UserRef `json:"customer"`
AuthorID uint64 `json:"author_id"`
LastMessage Message `json:"last_message"`
LastUserMessage MessageID `json:"last_user_message"`
LastActivity string `json:"last_activity"`
CreatedAt string `json:"created_at"`
UpdatedAt string `json:"updated_at"`
@ -470,6 +471,10 @@ type (
*AttachmentList
}
MessageID struct {
ID uint64 `json:"id"`
}
TextMessage struct {
Content string `json:"content"`
Quote *QuoteMessage `json:"quote"`
@ -631,6 +636,7 @@ type (
Customer *UserRef `json:"customer"`
AuthorID uint64 `json:"author_id"`
LastMessage *Message `json:"last_message"`
LastUserMessage *MessageID `json:"last_user_message"`
LastActivity string `json:"last_activity"`
}