diff --git a/VERSION b/VERSION index aeb6ab159..484129bc4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.114.1 +0.114.2 diff --git a/protocol/chat.go b/protocol/chat.go index a56d2b064..971698f00 100644 --- a/protocol/chat.go +++ b/protocol/chat.go @@ -191,6 +191,9 @@ type ChatPreview struct { // Used for display invited community's name in the last message ContentCommunityID string `json:"contentCommunityId,omitempty"` + + // Members array to represent how many there are for chats preview of group chats + Members []ChatMember `json:"members"` } func (c *Chat) PublicKey() (*ecdsa.PublicKey, error) { diff --git a/protocol/messenger_chats.go b/protocol/messenger_chats.go index 6e592e225..8bbe7bd02 100644 --- a/protocol/messenger_chats.go +++ b/protocol/messenger_chats.go @@ -51,6 +51,7 @@ func (m *Messenger) ChatsPreview() []*ChatPreview { SyncedTo: chat.SyncedTo, SyncedFrom: chat.SyncedFrom, Highlight: chat.Highlight, + Members: chat.Members, } if chat.LastMessage != nil { chatPreview.ContentType = chat.LastMessage.ContentType