Skip to content

Commit

Permalink
Fix panic if lottieconverter isn't installed
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Jul 3, 2023
1 parent 41d0ffc commit 104ee2d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions portal_convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 104ee2d

Please sign in to comment.