Commit 489a8077 by 刘敏

增加chatType扩展

parent a4703394
Showing with 4 additions and 3 deletions
...@@ -401,7 +401,7 @@ export default { ...@@ -401,7 +401,7 @@ export default {
) { ) {
const { id, ImChatId, uniplat_version } = await sdk() const { id, ImChatId, uniplat_version } = await sdk()
.model(params.modelName) .model(params.modelName)
.chat(+params.selectedListId, orgId()) .chat(+params.selectedListId, params.chatType, orgId())
.createChat(); .createChat();
const uniplatId = id.value; const uniplatId = id.value;
const chatId = Number(ImChatId.value); const chatId = Number(ImChatId.value);
...@@ -577,7 +577,7 @@ export default { ...@@ -577,7 +577,7 @@ export default {
if (obj_id == null) return; if (obj_id == null) return;
await sdk() await sdk()
.model(model_name) .model(model_name)
.chat(obj_id, orgId()) .chat(obj_id, currentChat.type, orgId())
.addMember(uids.map((id) => Number(id))); .addMember(uids.map((id) => Number(id)));
await new Promise((resolve) => setTimeout(resolve, 500)); await new Promise((resolve) => setTimeout(resolve, 500));
await dispatch(ChatStore.ACTION_GET_CHAT_MEMBERS); await dispatch(ChatStore.ACTION_GET_CHAT_MEMBERS);
...@@ -593,7 +593,7 @@ export default { ...@@ -593,7 +593,7 @@ export default {
if (obj_id == null) return; if (obj_id == null) return;
await sdk() await sdk()
.model(model_name) .model(model_name)
.chat(obj_id, orgId()) .chat(obj_id, currentChat.chat_type, orgId())
.removeMember(uids.map((id) => Number(id))); .removeMember(uids.map((id) => Number(id)));
await new Promise((resolve) => setTimeout(resolve, 500)); await new Promise((resolve) => setTimeout(resolve, 500));
await dispatch(ChatStore.ACTION_GET_CHAT_MEMBERS); await dispatch(ChatStore.ACTION_GET_CHAT_MEMBERS);
......
...@@ -216,6 +216,7 @@ export namespace ChatStore { ...@@ -216,6 +216,7 @@ export namespace ChatStore {
export type ACTION_CREATE_NEW_CHAT_BY_SERVICE_MAN = (params: { export type ACTION_CREATE_NEW_CHAT_BY_SERVICE_MAN = (params: {
modelName: string; modelName: string;
selectedListId: string; selectedListId: string;
chatType: string;
uids: string[]; uids: string[];
}) => Promise<void> }) => Promise<void>
......
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