(folder)
| 155 | } |
| 156 | |
| 157 | function isEncryptedForFolderIcon(folder) { |
| 158 | try { |
| 159 | const enc = window.currentFolderCaps?.encryption || null; |
| 160 | if (enc && enc.encrypted) return true; |
| 161 | } catch (e) { /* ignore */ } |
| 162 | try { |
| 163 | const el = document.querySelector(`.folder-option[data-folder="${CSS.escape(folder)}"]`); |
| 164 | return !!(el && el.classList.contains('encrypted')); |
| 165 | } catch (e) { |
| 166 | return false; |
| 167 | } |
| 168 | } |
| 169 | |
| 170 | function refreshEncryptedFolderIconsInList() { |
| 171 | // Folder strip icons |
no outgoing calls
no test coverage detected