Skip to content

Commit

Permalink
style: convert send-message-service like kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
psychology50 committed Jan 7, 2025
1 parent 9255655 commit ca70b1c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ class ChatMessageSendService(
ChatMessageDto.Response.from(message)
)
}

command.senderName.takeIf { it.isNotBlank() }?.let { senderName ->
simpMessagingTemplate.convertAndSendToUser(
senderName,
"/queue/chat/success",
message,
"/queue/success",
Unit,
command.messageIdHeader()
)
}
Expand Down

0 comments on commit ca70b1c

Please sign in to comment.