Skip to content
Source
Docs
Explore
Skills
MCP servers
For agents
Search or jump to…
Sign in
Sign up
pingdotgg
/
t3code
Pull requests
pingdotgg
t3code
Public
Synced with GitHub
Popular #1
Fork
0
0
0
0
1
2
3
4
5
6
7
8
9
Code
Architecture
Issues
Pull requests
Community
Assets
CI
Agents
Settings
fix(relay): iOS fallback pushes no longer re-ring a waiting thread on every publish
#28940
Send to my agent
Closed
juliusmarminge
wants to merge 4 commits into
main
from
refs/pull/28940/head
·
opened
4 weeks ago
View on GitHub
Conversation
6
Commits
4
Files changed
3
Impact
Showing
3 changed files
with
124 additions
and
8 deletions
.
x
0 of 3 viewed, 3 left
Files
Hide whitespace
Unified
Split
11 additions and 6 deletions
+11
-6
infra/relay/src/agentActivity/AgentActivityPublisher.ts
Modified
Diff
Before/After
Viewed
infra/relay/src/agentActivity/AgentActivityPublisher.ts
View file
Expand up
Show all 72 lines
@@ -73,15 +73,17 @@
73
73
nowMs: input.
nowMs
,
74
74
})
75
75
:
null
;
76
-
const
notificationOnlyAggregate =
77
-
input.
deliveryUser
.
notificationsEnabled
&&
78
-
!input.
deliveryUser
.
liveActivitiesEnabled
&&
79
-
input.
state
!==
null
80
-
?
makeAggregateState
({
76
+
const
publishedAggregate =
77
+
input.
state
===
null
78
+
?
null
79
+
:
makeAggregateState
({
81
80
activeStates
:
isTerminalPhase
(input.
state
) ? [] : [input.
state
],
82
81
terminalState
:
isTerminalPhase
(input.
state
) ? input.
state
:
null
,
83
82
nowMs
: input.
nowMs
,
84
-
})
83
+
});
84
+
const
notificationOnlyAggregate =
85
+
input.
deliveryUser
.
notificationsEnabled
&& !input.
deliveryUser
.
liveActivitiesEnabled
86
+
? publishedAggregate
85
87
:
null
;
86
88
const
targets =
yield
* liveActivities.
listTargets
({
userId
: input.
deliveryUser
.
userId
});
87
89
const
deliveriesByTarget =
yield
*
Effect
.
forEach
(
Show all 7 lines
@@ -95,6 +97,9 @@
95
97
apnsDeliveries.
sendForTarget
({
96
98
target,
97
99
aggregate
: liveActivityAggregate,
100
+
notificationAggregate
: input.
deliveryUser
.
liveActivitiesEnabled
Home
Search
Explore
Menu