Skip to content
TypeScript

Removed an unused helper from the Android push payload builder (#16116)

Kriday Dave31f9d832f4f0
diff --git a/infra/relay/src/agentActivity/fcmPayloads.ts b/infra/relay/src/agentActivity/fcmPayloads.ts
index 894bb8d55db..0f2c2e2e049 100644
--- a/infra/relay/src/agentActivity/fcmPayloads.ts
+++ b/infra/relay/src/agentActivity/fcmPayloads.ts
@@ -5,12 +5,6 @@ import {
} from "./agentActivityAggregate.ts";
import { agentActivityExpiresAt } from "./agentActivityPayloads.ts";
-export function androidActivityHero(aggregate: RelayAgentActivityAggregateState) {
- return [...aggregate.activities].sort(
- (a, b) => activityPhasePriority(a.phase) - activityPhasePriority(b.phase),
- )[0];
-}
-
/** Android focuses the priority thread while retaining rows for older clients. */
export function androidActivityData(aggregate: RelayAgentActivityAggregateState | null) {
const rows = [...(aggregate?.activities ?? [])].sort(