Skip to content

Commit

Permalink
fix Mobile app doesn't allow taking screenshots when the 'Block Scree…
Browse files Browse the repository at this point in the history
…nshots' toggle is turned off (#20941)
  • Loading branch information
Parveshdhull authored and ilmotta committed Aug 1, 2024
1 parent 58e0a6e commit 232bf53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/native_module/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 232bf53

Please sign in to comment.