connector/tomatrix: fix video captions
Signed-off-by: Sumner Evans <sumner.evans@automattic.com>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user