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
4d41bad9
authored
Jul 26, 2021
by
panjiangyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
添加删除成员
parent
b469c5a8
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
store/index.ts
store/index.ts
View file @
4d41bad9
...
...
@@ -19,6 +19,7 @@ export const ns = ChatStore.ns;
const
sdk
=
Chat
.
getSdk
;
const
UniplatChatModelName
=
"UniplatChat"
;
const
model
=
()
=>
sdk
().
model
(
UniplatChatModelName
);
const
orgId
=
()
=>
Chat
.
getOrgId
()
as
string
;
function
uniqueMessages
(
messages
:
NonNullable
<
ChatStore
.
STATE_CHAT_MSG_HISTORY
>
...
...
@@ -400,7 +401,7 @@ export default {
)
{
const
{
id
,
ImChatId
,
uniplat_version
}
=
await
sdk
()
.
model
(
params
.
modelName
)
.
chat
(
+
params
.
selectedListId
)
.
chat
(
+
params
.
selectedListId
,
orgId
()
)
.
createChat
();
const
uniplatId
=
id
.
value
;
const
chatId
=
ImChatId
.
value
;
...
...
@@ -566,7 +567,7 @@ export default {
if
(
obj_id
==
null
)
return
;
await
sdk
()
.
model
(
model_name
)
.
chat
(
obj_id
)
.
chat
(
obj_id
,
orgId
()
)
.
addMember
(
uids
.
map
((
id
)
=>
Number
(
id
)));
await
new
Promise
((
resolve
)
=>
setTimeout
(
resolve
,
500
));
await
dispatch
(
ChatStore
.
ACTION_GET_CHAT_MEMBERS
);
...
...
@@ -582,7 +583,7 @@ export default {
if
(
obj_id
==
null
)
return
;
await
sdk
()
.
model
(
model_name
)
.
chat
(
obj_id
)
.
chat
(
obj_id
,
orgId
()
)
.
removeMember
(
uids
.
map
((
id
)
=>
Number
(
id
)));
await
new
Promise
((
resolve
)
=>
setTimeout
(
resolve
,
500
));
await
dispatch
(
ChatStore
.
ACTION_GET_CHAT_MEMBERS
);
...
...
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