From 3c102b97976233c0e89af50bc71681ec28673968 Mon Sep 17 00:00:00 2001 From: Parvesh Monu Date: Thu, 1 Aug 2024 17:06:14 +0530 Subject: [PATCH] fix Mobile app doesn't allow taking screenshots when the 'Block Screenshots' toggle is turned off (#20941) --- src/native_module/core.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/native_module/core.cljs b/src/native_module/core.cljs index cf52b643b6..4efca427cb 100644 --- a/src/native_module/core.cljs +++ b/src/native_module/core.cljs @@ -333,7 +333,7 @@ [flag] (log/debug "[native-module] set-blank-preview-flag") ;; Sometimes the app crashes during logout because `flag` is nil. - (when flag + (when-not (nil? flag) (.setBlankPreviewFlag ^js (encryption) flag))) (defn get-device-model-info