mirror of
https://github.com/jjbrunton/Sauci.git
synced 2026-10-31 18:19:43 +00:00
Implement E2EE and message content moderation
This commit is contained in:
1 parent
e1ff87dc03
commit
198cd80dfd
74 files changed
+12939
-2178
No files matched your search
@@ -12,6 +12,7 @@ import { useAuthStore, useSubscriptionStore } from '../../store';
|
||||
import { resetSwipeTutorial } from '../../lib/swipeTutorialSeen';
|
||||
import { resetMatchesTutorial } from '../../lib/matchesTutorialSeen';
|
||||
import { supabase } from '../../lib/supabase'; // Needed for debug reset
|
||||
import { clearKeys } from '../../lib/encryption';
|
||||
|
||||
// Hooks
|
||||
import { useProfileSettings, useCoupleManagement } from './hooks';
|
||||
@@ -296,6 +297,30 @@ export function ProfileScreen() {
|
||||
}
|
||||
}}
|
||||
/>
|
||||
<View style={styles.preferencesDivider} />
|
||||
<MenuItem
|
||||
icon="key-outline"
|
||||
label="Clear Private Key"
|
||||
description="Remove E2EE keys from device"
|
||||
onPress={() => {
|
||||
Alert.alert(
|
||||
"Clear Keys",
|
||||
"Are you sure? You will lose access to encrypted messages until keys are regenerated.",
|
||||
[
|
||||
{ text: "Cancel", style: "cancel" },
|
||||
{
|
||||
text: "Clear",
|
||||
style: "destructive",
|
||||
onPress: async () => {
|
||||
await clearKeys();
|
||||
Alert.alert("Success", "Keys cleared. They will be regenerated on next launch/login.");
|
||||
}
|
||||
}
|
||||
]
|
||||
);
|
||||
}}
|
||||
variant="danger"
|
||||
/>
|
||||
</SettingsSection>
|
||||
)}
|
||||
|
||||
|
||||
Reference in new issue
Block a user