Fix private group members details not being sent on preview (#2936)

This commit is contained in:
Ibrahem Khalil 2022-11-03 11:57:51 +03:00 committed by GitHub
parent caa20e616e
commit bfab85f73b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 1 deletions

View File

@ -1 +1 @@
0.114.1 0.114.2

View File

@ -191,6 +191,9 @@ type ChatPreview struct {
// Used for display invited community's name in the last message // Used for display invited community's name in the last message
ContentCommunityID string `json:"contentCommunityId,omitempty"` 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) { func (c *Chat) PublicKey() (*ecdsa.PublicKey, error) {

View File

@ -51,6 +51,7 @@ func (m *Messenger) ChatsPreview() []*ChatPreview {
SyncedTo: chat.SyncedTo, SyncedTo: chat.SyncedTo,
SyncedFrom: chat.SyncedFrom, SyncedFrom: chat.SyncedFrom,
Highlight: chat.Highlight, Highlight: chat.Highlight,
Members: chat.Members,
} }
if chat.LastMessage != nil { if chat.LastMessage != nil {
chatPreview.ContentType = chat.LastMessage.ContentType chatPreview.ContentType = chat.LastMessage.ContentType