Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package busanVibe.busan.domain.chat.dto.websocket

import busanVibe.busan.domain.chat.enums.MessageType
import com.fasterxml.jackson.annotation.JsonProperty
import com.fasterxml.jackson.databind.PropertyNamingStrategies
import com.fasterxml.jackson.databind.annotation.JsonNaming
Expand All @@ -20,7 +21,8 @@ class ChatMessageResponseDTO {
val content: String,
val dateTime: LocalDateTime?,
@get:JsonProperty("is_my")
val isMy: Boolean
val isMy: Boolean,
val type: MessageType
)

}
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,8 @@ class ChatMongoService(
userImage = user?.profileImageUrl,
dateTime = chat.time,
content = chat.message,
isMy = user?.id == currentUser.id
isMy = user?.id == currentUser.id,
type = chat.type
)
}

Expand Down