feat: sync rich text message support
This commit is contained in:
parent
4d3bbeabd8
commit
7c9d8dda16
41 changed files with 1164 additions and 94 deletions
|
|
@ -113,6 +113,7 @@ type DialogDraft struct {
|
|||
ReplyTo *MessageReply
|
||||
WebPage *DialogDraftWebPage
|
||||
Effect int64
|
||||
RichMessage *MessageRichMessage
|
||||
}
|
||||
|
||||
// Empty reports whether this draft should clear the cloud draft slot.
|
||||
|
|
@ -124,7 +125,8 @@ func (d DialogDraft) Empty() bool {
|
|||
len(d.Entities) == 0 &&
|
||||
(d.ReplyTo == nil || replyOnlyTopic) &&
|
||||
d.WebPage == nil &&
|
||||
d.Effect == 0
|
||||
d.Effect == 0 &&
|
||||
d.RichMessage.IsZero()
|
||||
}
|
||||
|
||||
// DialogArchiveSummary 聚合归档(folder_id=1)状态,供主列表 getDialogs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue