Page MenuHomePhabricator

D9522.id32207.diff
No OneTemporary

D9522.id32207.diff

diff --git a/native/data/sqlite-data-handler.js b/native/data/sqlite-data-handler.js
--- a/native/data/sqlite-data-handler.js
+++ b/native/data/sqlite-data-handler.js
@@ -85,23 +85,15 @@
const callClearSensitiveData = React.useCallback(
async (triggeredBy: string) => {
- if (staffCanSee || staffUserHasBeenLoggedIn) {
- Alert.alert('Starting SQLite database deletion process');
- }
await commCoreModule.clearSensitiveData();
try {
await filesystemMediaCache.clearCache();
} catch {
throw new Error('clear_media_cache_failed');
}
- if (staffCanSee || staffUserHasBeenLoggedIn) {
- Alert.alert(
- 'SQLite database successfully deleted',
- `SQLite database deletion was triggered by ${triggeredBy}`,
- );
- }
+ console.log(`SQLite database deletion was triggered by ${triggeredBy}`);
},
- [staffCanSee, staffUserHasBeenLoggedIn],
+ [],
);
const handleSensitiveData = React.useCallback(async () => {

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 1:40 AM (7 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2684364
Default Alt Text
D9522.id32207.diff (1 KB)

Event Timeline