관리자 - 푸시 발송
- 본인 인증 여부에 따라 푸시 메시지를 발송할 수 있도록 isAuth 플래그 추가
This commit is contained in:
@@ -20,7 +20,7 @@ class FcmEvent(
|
||||
val container: String = "",
|
||||
val recipients: List<Long> = listOf(),
|
||||
val recipientsMap: Map<String, List<List<String>>>? = null,
|
||||
val isAuth: Boolean = false,
|
||||
val isAuth: Boolean? = null,
|
||||
val roomId: Long? = null,
|
||||
val contentId: Long? = null,
|
||||
val messageId: Long? = null,
|
||||
@@ -97,7 +97,7 @@ class FcmSendListener(
|
||||
if (fcmEvent.container.isNotBlank()) {
|
||||
val pushTokens = memberRepository.getCreateLiveRoomNotificationRecipientPushTokens(
|
||||
creatorId = fcmEvent.creatorId!!,
|
||||
isAuth = fcmEvent.isAuth,
|
||||
isAuth = fcmEvent.isAuth ?: false,
|
||||
container = fcmEvent.container
|
||||
)
|
||||
|
||||
@@ -118,7 +118,7 @@ class FcmSendListener(
|
||||
val pushTokens = memberRepository.getStartLiveRoomNotificationRecipientPushTokens(
|
||||
creatorId = fcmEvent.creatorId!!,
|
||||
roomId = fcmEvent.roomId!!,
|
||||
isAuth = fcmEvent.isAuth,
|
||||
isAuth = fcmEvent.isAuth ?: false,
|
||||
container = fcmEvent.container
|
||||
)
|
||||
|
||||
@@ -166,7 +166,7 @@ class FcmSendListener(
|
||||
if (fcmEvent.container.isNotBlank()) {
|
||||
val pushTokens = memberRepository.getUploadContentNotificationRecipientPushTokens(
|
||||
creatorId = fcmEvent.creatorId!!,
|
||||
isAuth = fcmEvent.isAuth,
|
||||
isAuth = fcmEvent.isAuth ?: false,
|
||||
container = fcmEvent.container
|
||||
)
|
||||
|
||||
|
@@ -3,5 +3,6 @@ package kr.co.vividnext.sodalive.fcm
|
||||
data class PushRequest(
|
||||
val memberIds: List<Long>,
|
||||
val title: String,
|
||||
val message: String
|
||||
val message: String,
|
||||
val isAuth: Boolean?
|
||||
)
|
||||
|
Reference in New Issue
Block a user