fix(fcm): 시스템 카테고리 알림 저장 제외 정책을 서비스에 반영한다
This commit is contained in:
@@ -79,7 +79,7 @@ class ChargeEventService(
|
||||
applicationEventPublisher.publishEvent(
|
||||
FcmEvent(
|
||||
type = FcmEventType.INDIVIDUAL,
|
||||
category = PushNotificationCategory.MESSAGE,
|
||||
category = PushNotificationCategory.SYSTEM,
|
||||
title = chargeEvent.title,
|
||||
messageKey = "can.charge.event.additional_can_paid",
|
||||
args = listOf(additionalCan),
|
||||
@@ -103,7 +103,7 @@ class ChargeEventService(
|
||||
applicationEventPublisher.publishEvent(
|
||||
FcmEvent(
|
||||
type = FcmEventType.INDIVIDUAL,
|
||||
category = PushNotificationCategory.MESSAGE,
|
||||
category = PushNotificationCategory.SYSTEM,
|
||||
titleKey = "can.charge.event.first_title",
|
||||
messageKey = "can.charge.event.additional_can_paid",
|
||||
args = listOf(additionalCan),
|
||||
|
||||
@@ -48,6 +48,7 @@ class PushNotificationService(
|
||||
if (recipientMemberIds.isEmpty()) return
|
||||
|
||||
val category = resolveCategory(fcmEvent) ?: return
|
||||
if (category == PushNotificationCategory.SYSTEM) return
|
||||
val senderSnapshot = resolveSenderSnapshot(fcmEvent)
|
||||
val deepLink = FcmService.buildDeepLink(
|
||||
serverEnv = serverEnv,
|
||||
|
||||
Reference in New Issue
Block a user