Rankin Zheng 8a5ecbc001 Enhance message handling in chatSlice
- Added condition to check if `action.payload.hasDone` is true, then update the hash of the last two messages in `state.messages`.
- Fixed the `splice` method in `deleteMessage.fulfilled` to correctly remove the message from `state.messages`.
- Updated `stopGenerating` dispatch in `ChatPanel.tsx` to include the message in the payload.
- Modified the delete message action in `MessageHeader.tsx` to handle the case when `item.hash` is not present.
2023-07-19 16:03:39 +08:00
..
2023-06-13 10:45:11 +08:00
2023-06-13 10:45:11 +08:00
2023-06-13 10:45:11 +08:00
2023-06-13 10:45:11 +08:00
2023-05-06 17:32:01 +08:00
2023-06-13 17:03:48 +08:00