From 0cfde913e49c93e2fb06c56c4291b9d7c6c7da21 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Wed, 19 Jun 2024 14:25:04 +0300 Subject: [PATCH] Convert gif width/height to numbers --- web/src/giphy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web/src/giphy.js b/web/src/giphy.js index 3e804bc..35172bb 100644 --- a/web/src/giphy.js +++ b/web/src/giphy.js @@ -68,9 +68,9 @@ export class GiphySearchTab extends Component { widgetAPI.sendSticker({ "body": gif.title, "info": { - "h": gif.images.original.height, - "w": gif.images.original.width, - "size": gif.images.original.size, + "h": +gif.images.original.height, + "w": +gif.images.original.width, + "size": +gif.images.original.size, "mimetype": "image/webp", }, "msgtype": "m.image",