From 68b25b3f6fe9f7199664ab845c9b8bb52097d065 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Sun, 12 Nov 2023 16:18:58 +0200 Subject: [PATCH] Support newsletter messages in ParseWebMessage --- client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client.go b/client.go index c066e049..82ca04e8 100644 --- a/client.go +++ b/client.go @@ -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())