Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(threads): add Pause session to park provider sessions and save RAM #12172

ClosedOmarAlaaeldein(GitHub profile, opens in a new tab)wants to merge 3 commits intomain fromrefs/pull/12172/headopened View on GitHub

Showing 16 changed files with 56 additions and 1 deletion (loading 13).

x
0 of 16 viewed, 16 left
2 additions and 0 deletionsapps/mobile/src/features/home/HomeRouteScreen.tsxModified
View file
@@ -45,6 +45,7 @@
archiveThread,
confirmDeleteThread,
settleThread,
+ pauseThread,
snoozeThread,
unsnoozeThread,
pinThread,
@@ -209,6 +210,7 @@
onArchiveThread={archiveThread}
onDeleteThread={confirmDeleteThread}
onSettleThread={settleThread}
+ onPauseThread={pauseThread}
onSnoozeThread={snoozeThread}
onUnsnoozeThread={unsnoozeThread}
onUnsettleThread={unsettleThread}
9 additions and 0 deletionsapps/mobile/src/features/home/HomeScreen.tsxModified
View file
@@ -115,6 +115,7 @@
readonly onDeleteThread: (thread: EnvironmentThreadShell) => void;
/** Resolves true iff the settle was dispatched and succeeded. */
readonly onSettleThread: (thread: EnvironmentThreadShell) => Promise<boolean>;
+ readonly onPauseThread: (thread: EnvironmentThreadShell) => Promise<boolean>;
readonly onSnoozeThread: (
thread: EnvironmentThreadShell,
snoozedUntil: string,