Commit 489a8077 by 刘敏

增加chatType扩展

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