Skip to content

Commit

Permalink
add MessageID on NewsletterMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
RomySaputraSihananda committed Dec 7, 2024
1 parent b2dd543 commit cb82abd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions notification.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ func (cli *Client) parseNewsletterMessages(node *waBinary.Node) []*types.Newslet
}
msg := types.NewsletterMessage{
MessageServerID: child.AttrGetter().Int("server_id"),
MessageID: child.AttrGetter().String("id"),
ViewsCount: 0,
ReactionCounts: nil,
}
Expand Down
1 change: 1 addition & 0 deletions types/newsletter.go
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ type NewsletterText struct {

type NewsletterMessage struct {
MessageServerID MessageServerID
MessageID MessageID
ViewsCount int
ReactionCounts map[string]int

Expand Down

0 comments on commit cb82abd

Please sign in to comment.