From 2b086379e10a165fb4a83ccbd1d4768ef4bb3e3f Mon Sep 17 00:00:00 2001 From: Javier Cuevas Date: Tue, 7 May 2024 16:37:55 +0200 Subject: [PATCH] Fix message replies in e2e threads --- msgconv/to-whatsapp.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/msgconv/to-whatsapp.go b/msgconv/to-whatsapp.go index 9e21672..d84d930 100644 --- a/msgconv/to-whatsapp.go +++ b/msgconv/to-whatsapp.go @@ -101,8 +101,7 @@ func (mc *MessageConverter) ToWhatsApp( var meta waMsgApplication.MessageApplication_Metadata if replyTo := mc.GetMetaReply(ctx, content); replyTo != nil { meta.QuotedMessage = &waMsgApplication.MessageApplication_Metadata_QuotedMessage{ - StanzaID: replyTo.ReplyMessageId, - RemoteJID: mc.GetData(ctx).JID().String(), + StanzaID: replyTo.ReplyMessageId, // TODO: this is hacky since it hardcodes the server // TODO 2: should this be included for DMs? Participant: types.JID{User: strconv.FormatInt(replyTo.ReplySender, 10), Server: types.MessengerServer}.String(),