add image to chat preview (#4888)
This commit is contained in:
parent
1ceb180e8a
commit
69326767d8
|
@ -243,6 +243,9 @@ type ChatPreview struct {
|
||||||
From string `json:"from"`
|
From string `json:"from"`
|
||||||
Deleted bool `json:"deleted"`
|
Deleted bool `json:"deleted"`
|
||||||
DeletedForMe bool `json:"deletedForMe"`
|
DeletedForMe bool `json:"deletedForMe"`
|
||||||
|
|
||||||
|
// Image of the chat in Base64 format
|
||||||
|
Base64Image string `json:"image,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *Chat) PublicKey() (*ecdsa.PublicKey, error) {
|
func (c *Chat) PublicKey() (*ecdsa.PublicKey, error) {
|
||||||
|
|
|
@ -76,6 +76,7 @@ func (m *Messenger) ChatsPreview() []*ChatPreview {
|
||||||
SyncedFrom: chat.SyncedFrom,
|
SyncedFrom: chat.SyncedFrom,
|
||||||
Highlight: chat.Highlight,
|
Highlight: chat.Highlight,
|
||||||
Members: chat.Members,
|
Members: chat.Members,
|
||||||
|
Base64Image: chat.Base64Image,
|
||||||
}
|
}
|
||||||
|
|
||||||
if chat.LastMessage != nil {
|
if chat.LastMessage != nil {
|
||||||
|
|
Loading…
Reference in New Issue