Skip to content

Commit 31f9d83

Browse files
authored
Removed an unused helper from the Android push payload builder (pingdotgg#16116)
1 parent 5c03ced commit 31f9d83

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

‎infra/relay/src/agentActivity/fcmPayloads.ts‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,6 @@ import {
55
} from "./agentActivityAggregate.ts";
66
import { agentActivityExpiresAt } from "./agentActivityPayloads.ts";
77

8-
export function androidActivityHero(aggregate: RelayAgentActivityAggregateState) {
9-
return [...aggregate.activities].sort(
10-
(a, b) => activityPhasePriority(a.phase) - activityPhasePriority(b.phase),
11-
)[0];
12-
}
13-
148
/** Android focuses the priority thread while retaining rows for older clients. */
159
export function androidActivityData(aggregate: RelayAgentActivityAggregateState | null) {
1610
const rows = [...(aggregate?.activities ?? [])].sort(

0 commit comments

Comments
 (0)