mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-07-12 21:02:17 +02:00
(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:
parent
753e3448f0
commit
f2b5c6b1ab
7 changed files with 147 additions and 41 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue