forked from mirror/mautrix-discord
Fix panic if lottieconverter isn't installed
This commit is contained in:
parent
41d0ffcf3b
commit
104ee2da57
1 changed files with 3 additions and 0 deletions
|
@ -82,6 +82,9 @@ func (portal *Portal) convertDiscordFile(ctx context.Context, typeName string, i
|
|||
}
|
||||
|
||||
func (portal *Portal) cleanupConvertedStickerInfo(content *event.MessageEventContent) {
|
||||
if content.Info == nil {
|
||||
return
|
||||
}
|
||||
if content.Info.Width == 0 && content.Info.Height == 0 {
|
||||
content.Info.Width = DiscordStickerSize
|
||||
content.Info.Height = DiscordStickerSize
|
||||
|
|
Loading…
Reference in a new issue