From e8ee5f174efc1e0e22df0f7742ac968402087e34 Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Mon, 17 Feb 2025 13:58:27 -0700 Subject: [PATCH] connector/tomatrix: include previewed URL in hash This will hopefully make it so that if the preview gets edited in by Telegram at a later time, it will be bridged. Signed-off-by: Sumner Evans --- pkg/connector/tomatrix.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/connector/tomatrix.go b/pkg/connector/tomatrix.go index 17e50938..714c4082 100644 --- a/pkg/connector/tomatrix.go +++ b/pkg/connector/tomatrix.go @@ -145,6 +145,7 @@ func (c *TelegramClient) convertToMatrix(ctx context.Context, portal *bridgev2.P if err != nil { log.Err(err).Msg("error converting webpage to link preview") } else if preview != nil { + hasher.Write([]byte(preview.MatchedURL)) content.BeeperLinkPreviews = append(content.BeeperLinkPreviews, preview) } }