Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

mobile: show inbox keys saved success message when inbox api created

Ammar Ahmed4d75a55f33cc
diff --git a/apps/mobile/app/screens/settings/manage-inbox-keys.tsx b/apps/mobile/app/screens/settings/manage-inbox-keys.tsx
index 64dc8e6be..3fa921f34 100644
--- a/apps/mobile/app/screens/settings/manage-inbox-keys.tsx
+++ b/apps/mobile/app/screens/settings/manage-inbox-keys.tsx
@@ -77,11 +77,7 @@ export const SetupInboxKeys = () => {
const handleSave = async () => {
try {
- console.log("validated...");
if (!formRef.current.validate()) return;
-
- console.log("validated...");
-
const keysEdited: SerializedKeyPair = {
publicKey: formRef.current.getValue("publicKey"),
privateKey: formRef.current.getValue("privateKey")
@@ -99,6 +95,10 @@ export const SetupInboxKeys = () => {
inboxEnabled: true
});
Navigation.goBack();
+ ToastManager.show({
+ message: strings.inboxKeysSaved(),
+ type: "success"
+ });
} catch (e) {
DatabaseLogger.error(e);
ToastManager.error(e as Error);