Skip to content

Commit ce0afc2

Browse files
committed
undo
1 parent 06cabac commit ce0afc2

1 file changed

Lines changed: 25 additions & 2 deletions

File tree

football/src/main/scala/com/gu/mobile/notifications/football/lib/EventConsumer.scala

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,29 @@ class EventConsumer(
2525
* to generate push notifications for, so we filter those out here.
2626
*/
2727
// todo can we capture these strings in union type?
28-
val liveActivityEventTypes = List("create-channel", "start-live-activity", "end-live-activity")
28+
val liveActivityEventTypes =
29+
List(
30+
// penalty shootout events
31+
"shootoutGoal",
32+
"shootoutMiss",
33+
"shootoutSave",
34+
// additional synthetic live activity life cycle events
35+
"create-channel",
36+
"start-live-activity",
37+
"end-live-activity",
38+
// additional synthetic match phase events for live activities
39+
"extra-time-to-be-played",
40+
"extra-time-first-half",
41+
"extra-time-half-time",
42+
"extra-time-second-half",
43+
"penalties-to-be-played",
44+
"penalties",
45+
"suspended",
46+
"resumed",
47+
"abandoned",
48+
"cancelled",
49+
"postponed"
50+
)
2951

3052
val filteredMatchData = matchData.copy(allEvents =
3153
matchData.allEvents.filterNot(e =>
@@ -106,4 +128,5 @@ class LiveActivityEventConsumer(
106128
)
107129
} getOrElse Nil
108130
}
109-
}
131+
}
132+

0 commit comments

Comments
 (0)