Revert "feat(date-memories): wire date_logged/date_reflection_* notification types into messaging service (batch 4/8)"

This reverts commit 8cfa367484.
This commit is contained in:
null 2026-06-30 18:13:00 -05:00
parent 6dddac4615
commit c19e7ea711
2 changed files with 0 additions and 27 deletions

View File

@ -121,7 +121,6 @@ class AppMessagingService : FirebaseMessagingService() {
gameType = message.data["game_type"], gameType = message.data["game_type"],
capsuleId = message.data["capsule_id"], capsuleId = message.data["capsule_id"],
challengeId = message.data["challenge_id"], challengeId = message.data["challenge_id"],
dateId = message.data["date_id"],
avatarUrl = message.data["sender_avatar_url"] avatarUrl = message.data["sender_avatar_url"]
) )
) )

View File

@ -248,25 +248,6 @@ enum class PartnerNotificationType(
channelId = NotificationChannelSetup.CHANNEL_PARTNER_ACTIONS, channelId = NotificationChannelSetup.CHANNEL_PARTNER_ACTIONS,
rateType = NotificationRateLimiter.Type.PARTNER_TRIGGER rateType = NotificationRateLimiter.Type.PARTNER_TRIGGER
), ),
// Date Memories & Replay: partner reflected (your turn) / both reflected (reveal) / a date was logged.
DATE_REFLECTION_PARTNER(
title = "Your partner reflected on your date 💭",
body = "Add yours to reveal together.",
channelId = NotificationChannelSetup.CHANNEL_PARTNER_ACTIONS,
rateType = NotificationRateLimiter.Type.PARTNER_TRIGGER
),
DATE_REFLECTION_READY(
title = "Your date reflections are ready ✨",
body = "Open to reveal them together.",
channelId = NotificationChannelSetup.CHANNEL_PARTNER_ACTIONS,
rateType = NotificationRateLimiter.Type.PARTNER_TRIGGER
),
DATE_LOGGED(
title = "You went on a date 💜",
body = "Reflect on it together while it's fresh.",
channelId = NotificationChannelSetup.CHANNEL_PARTNER_ACTIONS,
rateType = NotificationRateLimiter.Type.PARTNER_TRIGGER
),
DAILY_QUESTION_REMINDER( DAILY_QUESTION_REMINDER(
title = "Tonight's question is waiting.", title = "Tonight's question is waiting.",
body = "Answer together before it expires.", body = "Answer together before it expires.",
@ -343,8 +324,6 @@ enum class PartnerNotificationType(
CAPSULE_UNLOCKED -> AppRoute.MEMORY_LANE CAPSULE_UNLOCKED -> AppRoute.MEMORY_LANE
GENTLE_REMINDER -> AppRoute.DAILY_QUESTION GENTLE_REMINDER -> AppRoute.DAILY_QUESTION
THINKING_OF_YOU -> AppRoute.HOME THINKING_OF_YOU -> AppRoute.HOME
DATE_REFLECTION_PARTNER, DATE_REFLECTION_READY, DATE_LOGGED ->
payload.dateId?.let { AppRoute.dateReflection(it) } ?: AppRoute.DATE_MEMORIES
DAILY_QUESTION_REMINDER -> AppRoute.DAILY_QUESTION DAILY_QUESTION_REMINDER -> AppRoute.DAILY_QUESTION
// Open the actual conversation so the partner can reply in place. // Open the actual conversation so the partner can reply in place.
CHAT_MESSAGE -> if (payload.conversationId != null && coupleId.isNotBlank()) { CHAT_MESSAGE -> if (payload.conversationId != null && coupleId.isNotBlank()) {
@ -377,9 +356,6 @@ enum class PartnerNotificationType(
"memory_capsule_unlocked" -> CAPSULE_UNLOCKED "memory_capsule_unlocked" -> CAPSULE_UNLOCKED
"gentle_reminder" -> GENTLE_REMINDER "gentle_reminder" -> GENTLE_REMINDER
"thinking_of_you" -> THINKING_OF_YOU "thinking_of_you" -> THINKING_OF_YOU
"date_reflection_partner" -> DATE_REFLECTION_PARTNER
"date_reflection_ready" -> DATE_REFLECTION_READY
"date_logged" -> DATE_LOGGED
// Server emits both 'daily_question' (assignment) and 'daily_question_reminder' — both open Today. // Server emits both 'daily_question' (assignment) and 'daily_question_reminder' — both open Today.
"daily_question", "daily_question_reminder" -> DAILY_QUESTION_REMINDER "daily_question", "daily_question_reminder" -> DAILY_QUESTION_REMINDER
"chat_message" -> CHAT_MESSAGE "chat_message" -> CHAT_MESSAGE
@ -410,8 +386,6 @@ data class PartnerNotificationPayload(
val gameType: String? = null, val gameType: String? = null,
val capsuleId: String? = null, val capsuleId: String? = null,
val challengeId: String? = null, val challengeId: String? = null,
/** Completed-date id, used to deep link a date-reflection push into the reflection screen. */
val dateId: String? = null,
/** Sender's avatar URL, used as the notification large icon when present. */ /** Sender's avatar URL, used as the notification large icon when present. */
val avatarUrl: String? = null val avatarUrl: String? = null
) )