From bfab85f73bfa727db5b6e8078f9ce9ec191161ca Mon Sep 17 00:00:00 2001 From: Ibrahem Khalil <33176106+ibrkhalil@users.noreply.github.com> Date: Thu, 3 Nov 2022 11:57:51 +0300 Subject: [PATCH] Fix private group members details not being sent on preview (#2936) --- VERSION | 2 +- protocol/chat.go | 3 +++ protocol/messenger_chats.go | 1 + 3 files changed, 5 insertions(+), 1 deletion(-) 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