Skip to content

Commit 93bbea6

Browse files
committed
fix(mobile): skip expired snoozes during settle undo
1 parent ad4066d commit 93bbea6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎apps/mobile/src/features/home/useThreadListActions.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,7 @@ export function useThreadListActions(): {
276276
case "pin":
277277
return pinThread(thread, step.orderKey);
278278
case "snooze": {
279+
if (Date.parse(step.snoozedUntil) <= Date.now()) return true;
279280
if (!checkThreadOperationPermission(thread, "Could not undo settle"))
280281
return false;
281282
const result = await snoozeMutation({

0 commit comments

Comments
 (0)