Skip to content

Commit

Permalink
Merge branch 'scope-replies-to-portal'
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewFerr committed Nov 15, 2023
2 parents 7cc90af + 60ffd17 commit 1cb880d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion portal.go
Original file line number Diff line number Diff line change
Expand Up @@ -968,7 +968,9 @@ func (portal *Portal) storeReactionInDB(

func (portal *Portal) addSignalQuote(content *event.MessageEventContent, quote *signalmeow.IncomingSignalMessageQuoteData) {
if quote != nil {
originalMessage := portal.bridge.DB.Message.FindBySenderAndTimestamp(quote.QuotedSender, quote.QuotedTimestamp)
originalMessage := portal.bridge.DB.Message.GetBySignalID(
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)
return
Expand Down

0 comments on commit 1cb880d

Please sign in to comment.