We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a45b96a commit 4e096bdCopy full SHA for 4e096bd
src/backend/chat-server/src/main/kotlin/com/asyncgate/chat_server/domain/DirectMessage.kt
@@ -74,11 +74,11 @@ class DirectMessage(
74
75
/**
76
* 현재 메시지를 수정하여, 새로운 메시지(수정본)를 생성.
77
- * 새로운 메시지에는 새 ID가 부여되고, type은 EDIT로 변경됨.
+ * 새로운 메시지 type은 EDIT로 변경됨.
78
*/
79
fun withEdit(newName: String, newContent: String): DirectMessage {
80
return DirectMessage(
81
- id = IdGenerator.generate(), // 새 ID 부여
+ id = this.id,
82
channelId = this.channelId,
83
userId = this.userId,
84
type = DirectMessageType.EDIT,
0 commit comments