mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-05-29 01:03:53 +02:00
Use low-res thumbnail for url previews if full image isn't available
This commit is contained in:
parent
d257c80327
commit
6b8d478305
|
@ -74,7 +74,8 @@ func (portal *Portal) convertURLPreviewToBeeper(intent *appservice.IntentAPI, so
|
|||
if err != nil {
|
||||
portal.log.Warnfln("Failed to download thumbnail for link preview: %v", err)
|
||||
}
|
||||
} else if msg.JpegThumbnail != nil {
|
||||
}
|
||||
if thumbnailData == nil && msg.JpegThumbnail != nil {
|
||||
thumbnailData = msg.JpegThumbnail
|
||||
}
|
||||
if thumbnailData != nil {
|
||||
|
|
Loading…
Reference in a new issue