aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/widget-api.js
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2024-05-18 16:08:35 +0300
committerTulir Asokan <tulir@maunium.net>2024-05-18 16:18:55 +0300
commit47f17fde452b5e9f0c9e96ce0e2c878dd0574b7f (patch)
treed24482ccf9720fe9defce1b361575ae9bbaf1a25 /web/src/widget-api.js
parentf59406a47a6778cd402e656ffb64f667335f665a (diff)
Add support for sending gifs via Giphy
Fixes #22 Closes #75 Co-authored-by: Nischay <hegdenischay@gmail.com>
Diffstat (limited to 'web/src/widget-api.js')
-rw-r--r--web/src/widget-api.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/src/widget-api.js b/web/src/widget-api.js
index fa72165..d9964a7 100644
--- a/web/src/widget-api.js
+++ b/web/src/widget-api.js
@@ -60,8 +60,9 @@ export function sendSticker(content) {
const widgetData = {
...data,
description: content.body,
- file: `${content.id}.png`,
+ file: content.filename ?? `${content.id}.png`,
}
+ delete widgetData.content.filename
// Element iOS explodes if there are extra fields present
delete widgetData.content["net.maunium.telegram.sticker"]
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage