Removed an unused helper from the Android push payload builder (#16116)
This commit is contained in:
1 parent
5c03ced3be
commit
31f9d832f4
1 file changed
-6
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user