aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/widget-api.js
diff options
context:
space:
mode:
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