Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(relay): reopening the app ends a finished iOS Live Activity #20265

MergedMohtashamMurshid(GitHub profile, opens in a new tab)merged 1 commit intomain fromrefs/pull/20265/headmerged by juliusmarminge View on GitHub

Showing 2 changed files with 84 additions and 2 deletions.

x
0 of 2 viewed, 2 left
62 additions and 0 deletionsinfra/relay/src/agentActivity/LiveActivities.test.tsModified
View file
@@ -52,6 +52,13 @@
const dialect = new PgDialect();
​
const fakeDb = {
+ select: () => ({
+ from: (table: unknown) => {
+ expect(table).toBe(relayLiveActivities);
+ calls.push("select");
+ return { where: () => Effect.succeed([]) };
+ },
+ }),
update: (table: unknown) => {
expect(table).toBe(relayLiveActivities);
calls.push("update");
@@ -95,6 +102,7 @@
yield* liveActivities.register({ userId: "user-2", registration });
​
expect(calls).toEqual([
+ "select",
"update",
"update.set",
"update.where",
@@ -145,6 +153,59 @@
​
+ it.effect("keeps the arming time when the current card re-registers its token", () => {
+ const armedAt = "2026-05-25T00:00:00.000Z";