connector/tomatrix: fix video captions

Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
Sumner Evans
2024-11-12 09:58:06 -07:00
parent 40f259da5e
commit 463277def0
+6
View File
@@ -386,6 +386,12 @@ func (c *TelegramClient) convertMediaRequiringUpload(ctx context.Context, portal
// Strip filename if it's a sticker
if isSticker {
content.FileName = ""
} else if content.FileName == "" {
if content.Body != "" {
content.FileName = content.Body
} else {
content.Body = "file"
}
}
if isVideoGif {