| ... | ... | @@ -5,12 +5,6 @@ import { |
| 5 | 5 | } from "./agentActivityAggregate.ts"; |
| 6 | 6 | import { agentActivityExpiresAt } from "./agentActivityPayloads.ts"; |
| 7 | 7 | |
| 8 | | export function androidActivityHero(aggregate: RelayAgentActivityAggregateState) { |
| 9 | | return [...aggregate.activities].sort( |
| 10 | | (a, b) => activityPhasePriority(a.phase) - activityPhasePriority(b.phase), |
| 11 | | )[0]; |
| 12 | | } |
| 13 | | |
| 14 | 8 | /** Android focuses the priority thread while retaining rows for older clients. */ |
| 15 | 9 | export function androidActivityData(aggregate: RelayAgentActivityAggregateState | null) { |
| 16 | 10 | const rows = [...(aggregate?.activities ?? [])].sort( |