fix(chat): remove tenor.com domain from preview

Also use the preview width if available

Fixes #13955
This commit is contained in:
Stefan 2022-09-08 14:52:40 +01:00 committed by Stefan Dunca
parent c3aa69b8ab
commit fea157e50e
3 changed files with 3 additions and 3 deletions

View File

@ -361,7 +361,6 @@ SettingsContentBase {
filename = "github"; break;
case "medium":
filename = "medium"; break;
case "tenor gifs":
case "tenor gifs subdomain":
filename = "tenor"; break;
case "giphy gifs":

View File

@ -261,7 +261,8 @@ Column {
container: root.container
source: linkData.thumbnailUrl
visible: linkData.thumbnailUrl.length
imageWidth: 300
readonly property int previewWidth: parseInt(linkData.width)
imageWidth: Math.min(300, previewWidth > 0 ? previewWidth : 300)
isCurrentUser: root.isCurrentUser
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: parent.top

2
vendor/status-go vendored

@ -1 +1 @@
Subproject commit 846029692c8a2ec5f9adb1b6781498f265c44b75
Subproject commit bcdb14bd4890aab8f803cf0b8c1ecd702f4228a4