Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update emails nav structure (#771)
Leendert de Borst4480eb897ab9
diff --git a/mobile-app/app/emails/[id].tsx b/mobile-app/app/(tabs)/(emails)/[id].tsxsimilarity index 100%rename from mobile-app/app/emails/[id].tsxrename to mobile-app/app/(tabs)/(emails)/[id].tsxdiff --git a/mobile-app/app/(tabs)/(emails)/_layout.tsx b/mobile-app/app/(tabs)/(emails)/_layout.tsxnew file mode 100644index 000000000..5aa341fcd--- /dev/null+++ b/mobile-app/app/(tabs)/(emails)/_layout.tsx@@ -0,0 +1,27 @@+import { useColors } from '@/hooks/useColorScheme';+import { Stack } from 'expo-router';++export default function EmailsLayout() {+ const colors = useColors();++ return (+ <Stack>+ <Stack.Screen+ name="index"+ options={{+ headerShown: false,+ }}+ />+ <Stack.Screen+ name="[id]"+ options={{+ title: 'Email',+ headerShown: true,+ headerStyle: {+ backgroundColor: colors.headerBackground,+ },+ }}+ />+ </Stack>+ );+}\ No newline at end of filediff --git a/mobile-app/app/(tabs)/emails.tsx b/mobile-app/app/(tabs)/(emails)/index.tsxsimilarity index 100%rename from mobile-app/app/(tabs)/emails.tsxrename to mobile-app/app/(tabs)/(emails)/index.tsxdiff --git a/mobile-app/app/(tabs)/_layout.tsx b/mobile-app/app/(tabs)/_layout.tsxindex 6c5ba97ac..a6cd6a830 100644--- a/mobile-app/app/(tabs)/_layout.tsx+++ b/mobile-app/app/(tabs)/_layout.tsx@@ -63,7 +63,7 @@ export default function TabLayout() {}}/><Tabs.Screen- name="emails"+ name="(emails)"options={{title: 'Emails',tabBarIcon: ({ color }) => <IconSymbol size={28} name="envelope.fill" color={color} />,diff --git a/mobile-app/utils/EncryptionUtility.tsx b/mobile-app/utils/EncryptionUtility.tsxindex 9461caf5c..5b8e6f216 100644--- a/mobile-app/utils/EncryptionUtility.tsx+++ b/mobile-app/utils/EncryptionUtility.tsx@@ -92,9 +92,6 @@ class EncryptionUtility {const ivHex = Buffer.from(iv).toString('hex');const tagHex = Buffer.from(tag).toString('hex');- console.log('ivHex: ', ivHex);- console.log('tagHex: ', tagHex);-const decryptedData = await AesGcmCrypto.decrypt(contentBase64,base64Key,@@ -253,21 +250,14 @@ class EncryptionUtility {throw new Error('Encryption key not found');}- console.log('email.encryptedSymmetricKey: ', email.encryptedSymmetricKey);- console.log('encryptionKey.PrivateKey: ', encryptionKey.PrivateKey);-// Decrypt symmetric key with asymmetric private keyconst symmetricKey = await EncryptionUtility.decryptWithPrivateKey(email.encryptedSymmetricKey,encryptionKey.PrivateKey);- console.log('Decrypted symmetricKey: ', symmetricKey);-const symmetricKeyBase64 = Buffer.from(symmetricKey).toString('base64');- console.log('Decrypted symmetricKeyBase64: ', symmetricKeyBase64);-// Create a new object to avoid mutating the originalconst decryptedEmail = { ...email };