From 60ffd1798d5725f389cba9b627b4805542c6dd42 Mon Sep 17 00:00:00 2001 From: Andrew Ferrazzutti Date: Wed, 15 Nov 2023 11:30:48 -0500 Subject: [PATCH] Don't check quoted sender puppet --- portal.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/portal.go b/portal.go index 9c1f3bb1..ffe319c1 100644 --- a/portal.go +++ b/portal.go @@ -963,13 +963,8 @@ func (portal *Portal) storeReactionInDB( func (portal *Portal) addSignalQuote(content *event.MessageEventContent, quote *signalmeow.IncomingSignalMessageQuoteData) { if quote != nil { - puppet := portal.bridge.DB.Puppet.GetBySignalID(quote.QuotedSender) - if puppet == nil { - portal.log.Warn().Msgf("Couldn't find puppet for quoted sender %s", quote.QuotedSender) - return - } originalMessage := portal.bridge.DB.Message.GetBySignalID( - puppet.SignalID, quote.QuotedTimestamp, portal.ChatID, portal.Receiver, + quote.QuotedSender, quote.QuotedTimestamp, portal.ChatID, portal.Receiver, ) if originalMessage == nil { portal.log.Warn().Msgf("Couldn't find message with Signal ID %s/%d", quote.QuotedSender, quote.QuotedTimestamp)