feat(user-creator-chat): 미접속 상대 푸시를 발행한다

This commit is contained in:
2026-06-19 01:55:30 +09:00
parent 743020d6bf
commit b7c1bb8c20
2 changed files with 37 additions and 1 deletions

View File

@@ -139,6 +139,8 @@ class UserCreatorChatService(
memberId = opponent.id!!,
payload = websocketMessagePayload(UserCreatorChatWebSocketMessageType.MESSAGE, roomId, opponentMessage)
)
} else {
publishMessagePush(message, sender, opponent)
}
return senderMessage
}
@@ -236,7 +238,9 @@ class UserCreatorChatService(
senderMemberId = sender.id,
args = listOf(sender.nickname),
recipients = listOf(opponent.id!!),
messageId = message.id
roomId = message.chatRoom.id,
messageId = message.id,
chatType = USER_CREATOR_CHAT_TYPE
)
)
}
@@ -298,4 +302,8 @@ class UserCreatorChatService(
val senderParticipant: UserCreatorChatParticipant,
val opponentParticipant: UserCreatorChatParticipant
)
companion object {
private const val USER_CREATOR_CHAT_TYPE = "USER_CREATOR"
}
}