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
f86ea82a
authored
Jul 30, 2021
by
刘敏
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Revert "增加chatType扩展"
This reverts commit
489a8077
.
parent
489a8077
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
store/index.ts
store/model.ts
store/index.ts
View file @
f86ea82a
...
@@ -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
,
params
.
chatType
,
orgId
())
.
chat
(
+
params
.
selectedListId
,
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
,
currentChat
.
type
,
orgId
())
.
chat
(
obj_id
,
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
,
currentChat
.
chat_type
,
orgId
())
.
chat
(
obj_id
,
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
);
...
...
store/model.ts
View file @
f86ea82a
...
@@ -216,7 +216,6 @@ export namespace ChatStore {
...
@@ -216,7 +216,6 @@ 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
>
...
...
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