Skip to content

Commit

Permalink
Don't check quoted sender puppet
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewFerr committed Nov 15, 2023
1 parent f62aeab commit 60ffd17
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions portal.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 60ffd17

Please sign in to comment.