Skip to content

Commit

Permalink
Support newsletter messages in ParseWebMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Nov 12, 2023
1 parent 6475238 commit 68b25b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -673,7 +673,7 @@ func (cli *Client) ParseWebMessage(chatJID types.JID, webMsg *waProto.WebMessage
if info.Sender.IsEmpty() {
return nil, ErrNotLoggedIn
}
} else if chatJID.Server == types.DefaultUserServer {
} else if chatJID.Server == types.DefaultUserServer || chatJID.Server == types.NewsletterServer {
info.Sender = chatJID
} else if webMsg.GetParticipant() != "" {
info.Sender, err = types.ParseJID(webMsg.GetParticipant())
Expand Down

0 comments on commit 68b25b3

Please sign in to comment.