Fix private group members details not being sent on preview (#2936)
This commit is contained in:
parent
caa20e616e
commit
bfab85f73b
|
@ -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) {
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue