fix(ios): blocks Sentry event for known no-image case

This commit is contained in:
jahorton 2022-06-20 09:10:54 +07:00
parent a82ed2123e
commit 09db46c71e

View file

@ -61,6 +61,13 @@ class KeyboardViewController: InputViewController {
}
func setupTopBarImage(size: CGSize) {
// We override the height in getTopBarImage, but not width.
// If width is 0, we return null from that function; this'll
// trigger the guard below.
if size.width == 0 {
return
}
let imgPath = getTopBarImage(size: size)
guard let path = imgPath else {
SentryManager.captureAndLog("No image specified for the image banner!")