fix: historical chats appear in the new user's chat box #256 (#282)

### What problem does this PR solve?

historical chats appear in the new user's chat box

Issue link:#256

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
balibabu
2024-04-09 19:01:57 +08:00
committed by GitHub
parent 653c759d8d
commit 28d29949c6
7 changed files with 251 additions and 162 deletions

View File

@@ -97,6 +97,7 @@ const model: DvaModel<ChatModelState> = {
if (data.retcode === 0) {
yield put({ type: 'setDialogList', payload: data.data });
}
return data;
},
*listConversation({ payload }, { call, put }) {
const { data } = yield call(chatService.listConversation, payload);