Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

feat(notes): persist share_token locally so copy-link survives restarts

Gabriel Stein32e61e33d10d
diff --git a/src/helpers/database.js b/src/helpers/database.js
index 616411626..43f61f557 100644
--- a/src/helpers/database.js
+++ b/src/helpers/database.js
@@ -481,6 +481,11 @@ class DatabaseManager {
} catch (err) {
if (!err.message.includes("duplicate column")) throw err;
}
+ try {
+ this.db.exec("ALTER TABLE notes ADD COLUMN share_token TEXT");
+ } catch (err) {
+ if (!err.message.includes("duplicate column")) throw err;
+ }
// Sync columns for folders
try {
@@ -1487,6 +1492,7 @@ class DatabaseManager {
"client_note_id",
"cloud_id",
"is_shared",
+ "share_token",
];
const fields = [];
const values = [];
diff --git a/src/types/electron.ts b/src/types/electron.ts
index cec8a13f4..63b4323c1 100644
--- a/src/types/electron.ts
+++ b/src/types/electron.ts
@@ -57,6 +57,7 @@ export interface NoteItem {
expected_speaker_count: number | null;
cloud_id: string | null;
is_shared: number;
+ share_token: string | null;
created_at: string;
updated_at: string;
client_note_id: string;