mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-12-14 09:23:51 +01:00
Use low-res thumbnail for url previews if full image isn't available
This commit is contained in:
parent
d257c80327
commit
6b8d478305
1 changed files with 2 additions and 1 deletions
|
@ -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