[Themes > Background] Prevent bad blur property values

This commit is contained in:
Beef 2023-04-15 20:04:40 +01:00
parent 85d0bd263b
commit fd741ded5d

View file

@ -29,7 +29,7 @@ export function patchChatBackground() {
return after("default", MessagesWrapperConnected, (_, ret) => React.createElement(RN.ImageBackground, {
style: { flex: 1, height: "100%" },
source: { uri: currentBackground.url },
blurRadius: currentBackground.blur,
blurRadius: typeof currentBackground.blur === "number" ? currentBackground.blur : 0,
children: ret,
}));
}