feat: enhance chat message handling; add createdAt timestamp to messages and implement dynamic component rendering for various chat types

This commit is contained in:
2025-09-04 16:22:26 +02:00
parent 8d7ff6f3a2
commit c665f5ea3d
7 changed files with 128 additions and 88 deletions

View File

@@ -7,7 +7,3 @@
</div>
</template>
<style scoped>
</style>

View File

@@ -51,6 +51,7 @@ watch(
sender: ChatSender.USER,
state: ChatState.SENT,
type: ChatType.INIT,
createdAt: new Date(),
}"
/>
<ChatMessageContainer
@@ -76,6 +77,7 @@ watch(
sender: ChatSender.ARTHUR,
state: ChatState.SENT,
type: ChatType.INIT,
createdAt: new Date(),
}"
/>
<ChatMessageContainer