feat(fcm): 푸시 알림함 저장 및 카테고리 조회를 지원한다
This commit is contained in:
@@ -6,6 +6,7 @@ import kr.co.vividnext.sodalive.aws.s3.S3Uploader
|
||||
import kr.co.vividnext.sodalive.common.SodaException
|
||||
import kr.co.vividnext.sodalive.fcm.FcmEvent
|
||||
import kr.co.vividnext.sodalive.fcm.FcmEventType
|
||||
import kr.co.vividnext.sodalive.fcm.notification.PushNotificationCategory
|
||||
import kr.co.vividnext.sodalive.i18n.LangContext
|
||||
import kr.co.vividnext.sodalive.i18n.SodaMessageSource
|
||||
import kr.co.vividnext.sodalive.member.Member
|
||||
@@ -72,8 +73,10 @@ class MessageService(
|
||||
applicationEventPublisher.publishEvent(
|
||||
FcmEvent(
|
||||
type = FcmEventType.SEND_MESSAGE,
|
||||
category = PushNotificationCategory.MESSAGE,
|
||||
titleKey = "message.fcm.title",
|
||||
messageKey = "message.fcm.text_received",
|
||||
senderMemberId = sender.id,
|
||||
args = listOf(sender.nickname),
|
||||
messageId = message.id
|
||||
)
|
||||
@@ -145,8 +148,10 @@ class MessageService(
|
||||
applicationEventPublisher.publishEvent(
|
||||
FcmEvent(
|
||||
type = FcmEventType.SEND_MESSAGE,
|
||||
category = PushNotificationCategory.MESSAGE,
|
||||
titleKey = "message.fcm.title",
|
||||
messageKey = "message.fcm.voice_received",
|
||||
senderMemberId = sender.id,
|
||||
args = listOf(sender.nickname),
|
||||
messageId = message.id
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user