@@ -141,41 +141,44 @@ type Chat struct {
141141 Network string `json:"network,required"`
142142 // Chat participants information.
143143 Participants ChatParticipants `json:"participants,required"`
144- // Display title of the chat as computed by the client/server.
145- Title string `json:"title,required"`
146144 // Chat type: 'single' for direct messages, 'group' for group chats.
147145 //
148146 // Any of "single", "group".
149147 Type ChatType `json:"type,required"`
150148 // Number of unread messages.
151149 UnreadCount int64 `json:"unreadCount,required"`
150+ // Description of the chat.
151+ Description string `json:"description,nullable"`
152152 // True if chat is archived.
153153 IsArchived bool `json:"isArchived"`
154- // True if chat notifications are muted.
154+ // True if the chat is muted.
155155 IsMuted bool `json:"isMuted"`
156- // True if chat is pinned.
156+ // True if the chat is pinned.
157157 IsPinned bool `json:"isPinned"`
158158 // Timestamp of last activity.
159159 LastActivity time.Time `json:"lastActivity" format:"date-time"`
160160 // Last read message sortKey.
161161 LastReadMessageSortKey string `json:"lastReadMessageSortKey"`
162162 // Local chat ID specific to this Beeper Desktop installation.
163163 LocalChatID string `json:"localChatID,nullable"`
164+ // Display title of the chat.
165+ Title string `json:"title,nullable"`
164166 // JSON contains metadata for fields, check presence with [respjson.Field.Valid].
165167 JSON struct {
166168 ID respjson.Field
167169 AccountID respjson.Field
168170 Network respjson.Field
169171 Participants respjson.Field
170- Title respjson.Field
171172 Type respjson.Field
172173 UnreadCount respjson.Field
174+ Description respjson.Field
173175 IsArchived respjson.Field
174176 IsMuted respjson.Field
175177 IsPinned respjson.Field
176178 LastActivity respjson.Field
177179 LastReadMessageSortKey respjson.Field
178180 LocalChatID respjson.Field
181+ Title respjson.Field
179182 ExtraFields map [string ]respjson.Field
180183 raw string
181184 } `json:"-"`
0 commit comments