We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f5e9dc4 + 5cf9d04 commit 0264275Copy full SHA for 0264275
1 file changed
src/views/pages/ChatPanel.tsx
@@ -81,9 +81,12 @@ const chatPanel = observer(() => {
81
useEffect(() => {
82
getSettings();
83
getFeatureToggles();
84
- chat.fetchHistoryMessages({ pageIndex: 0 }).then();
85
messageUtil.registerHandler("getUserAccessKey", (message: any) => {
86
chat.setKey(message.accessKey);
+ // The history records need to be obtained after setting the key,
87
+ // as the display information in the history record requires adjustment
88
+ // based on whether the key is present.
89
+ chat.fetchHistoryMessages({ pageIndex: 0 }).then();
90
});
91
messageUtil.registerHandler("reloadMessage", (message: any) => {
92
chat.reloadMessage(message);
0 commit comments