fix Mobile app doesn't allow taking screenshots when the 'Block Screenshots' toggle is turned off (#20941)

This commit is contained in:
Parvesh Monu 2024-08-01 17:06:14 +05:30 committed by GitHub
parent bd4b7fc49d
commit 3c102b9797
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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