Commit 0452b288 by Sixong.Zhu

update

parent 0360c5dc
Showing with 12 additions and 5 deletions
......@@ -946,11 +946,18 @@ export default {
) {
return Promise.reject();
}
return await Chat.getSdk()
.model(currentChat.model_name)
.chat(currentChat.obj_id, orgId())
.startChat()
.finally(() => dispatch(ChatStore.ACTION_GET_CHAT_MEMBERS));
return new Promise<void>((resolve, reject) => {
Chat.getSdk()
.model(currentChat.model_name)
.chat(currentChat.obj_id, orgId())
.startChat()
.catch(reject)
.finally(() =>
dispatch(ChatStore.ACTION_GET_CHAT_MEMBERS)
.then(resolve)
.catch(reject)
);
});
},
async [ChatStore.ACTION_CHAT_FINISH_RECEPTION]({ getters, dispatch }) {
const currentChat = getters[
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment