From da9fadb009250d0f524eef9c43e8eb54fd15c124 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Thu, 19 Aug 2021 19:19:56 +0300 Subject: [PATCH] Add comment --- portal.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/portal.go b/portal.go index d37449b..518b520 100644 --- a/portal.go +++ b/portal.go @@ -2116,6 +2116,9 @@ func (portal *Portal) convertMatrixMessage(sender *User, evt *event.Event) (*waP if msg != nil { ctxInfo.StanzaId = &msg.JID ctxInfo.Participant = &msg.Sender + // Using blank content here seems to work fine on all official WhatsApp apps. + // Getting the content from the phone would be possible, but it's complicated. + // https://github.com/mautrix/whatsapp/commit/b3312bc663772aa274cea90ffa773da2217bb5e0 ctxInfo.QuotedMessage = fallbackQuoteContent() } }