(1) add running transcript to voice input (2) capture till end of speech when mic is used (3) notify only on important emails

This commit is contained in:
Arjun 2026-06-30 18:40:50 +05:30
parent 753e3448f0
commit f2b5c6b1ab
7 changed files with 147 additions and 41 deletions

View file

@ -248,6 +248,7 @@ function notifyNewEmails(threads: SyncedThread[]): void {
const now = Date.now();
for (const { threadId } of threads) {
const snapshot = readCachedSnapshot(threadId)?.snapshot;
if (snapshot?.importance !== 'important') continue;
if (snapshot && isEmailTooOldToNotify(snapshotDateMs(snapshot), now)) continue;
const subject = snapshot?.subject?.trim() || '(no subject)';
const from = snapshot?.from?.trim();