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 <sumner.evans@automattic.com>
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user