Add E2EE key pair verification before send

🤖 Generated with [Claude Code](https://claude.com/claude-code)
This commit is contained in:
Jamie Brunton committed 2026-01-02 22:30:51 +00:00
1 parent 69f43ffb7d
commit 0ffa7fa952
6 files changed
+148 -29

No files matched your search

+5 -1
View File
@@ -184,7 +184,11 @@ export const ChatScreen: React.FC = () => {
}
} catch (err) {
console.error("Error sending message:", err);
Alert.alert("Error", "Failed to send message");
// Show the actual error message if it's user-friendly (from encryption)
const errorMessage = err instanceof Error && err.message
? err.message
: "Failed to send message";
Alert.alert("Error", errorMessage);
setInputText(content);
}
};