Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
foreign
/
customer-service
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
489a8077
authored
Jul 30, 2021
by
刘敏
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
增加chatType扩展
parent
a4703394
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
store/index.ts
store/model.ts
store/index.ts
View file @
489a8077
...
...
@@ -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
);
...
...
store/model.ts
View file @
489a8077
...
...
@@ -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
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment