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
1e1b2060
authored
Jul 13, 2021
by
panjiangyi
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
format
parent
7de792a3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
chat-room.vue
store/index.ts
chat-room.vue
View file @
1e1b2060
...
@@ -138,7 +138,7 @@ export default class ChatRoom extends Vue {
...
@@ -138,7 +138,7 @@ export default class ChatRoom extends Vue {
private
get
getCurrentInputingPeople
()
{
private
get
getCurrentInputingPeople
()
{
return
this
.
currentInputPeople
return
this
.
currentInputPeople
.
map
((
k
)
=>
""
/* this.userInfo[k].name */
)
.
map
(()
=>
""
/* this.userInfo[k].name */
)
.
join
(
"、"
);
.
join
(
"、"
);
}
}
...
...
store/index.ts
View file @
1e1b2060
...
@@ -442,11 +442,11 @@ export default {
...
@@ -442,11 +442,11 @@ export default {
commit
(
ChatStore
.
MUTATION_HIDE_CHAT_CREATOR
);
commit
(
ChatStore
.
MUTATION_HIDE_CHAT_CREATOR
);
await
dispatch
(
ChatStore
.
ACTION_GET_MY_CHAT_LIST
);
await
dispatch
(
ChatStore
.
ACTION_GET_MY_CHAT_LIST
);
const
roomList
=
state
[
ChatStore
.
STATE_MY_CHAT_ROOM_LIST
];
const
roomList
=
state
[
ChatStore
.
STATE_MY_CHAT_ROOM_LIST
];
if
(
roomList
==
null
)
return
if
(
roomList
==
null
)
return
;
const
newChat
=
roomList
.
list
.
find
(
const
newChat
=
roomList
.
list
.
find
(
(
k
)
=>
k
.
uniplatId
===
id
(
k
)
=>
k
.
uniplatId
===
id
);
);
if
(
newChat
==
null
)
return
if
(
newChat
==
null
)
return
;
commit
(
ChatStore
.
MUTATION_SHOW_CHAT
);
commit
(
ChatStore
.
MUTATION_SHOW_CHAT
);
await
dispatch
(
ChatStore
.
ACTION_SAVE_CURRENT_CHAT_ID_VERSION
,
{
await
dispatch
(
ChatStore
.
ACTION_SAVE_CURRENT_CHAT_ID_VERSION
,
{
chatId
:
newChat
.
chat_id
,
chatId
:
newChat
.
chat_id
,
...
@@ -541,7 +541,7 @@ export default {
...
@@ -541,7 +541,7 @@ export default {
const
chatId
=
state
[
ChatStore
.
STATE_CHAT_CURRENT_CHAT_ID
];
const
chatId
=
state
[
ChatStore
.
STATE_CHAT_CURRENT_CHAT_ID
];
if
(
chatId
==
null
)
return
;
if
(
chatId
==
null
)
return
;
const
getChatMembersResult
=
await
xim
.
fetchChatMembers
(
chatId
);
const
getChatMembersResult
=
await
xim
.
fetchChatMembers
(
chatId
);
if
(
getChatMembersResult
==
null
)
return
if
(
getChatMembersResult
==
null
)
return
;
const
chatMembers
=
getChatMembersResult
.
args
[
0
]
as
ChatMember
[];
const
chatMembers
=
getChatMembersResult
.
args
[
0
]
as
ChatMember
[];
const
newChatMembers
=
await
Promise
.
all
(
const
newChatMembers
=
await
Promise
.
all
(
chatMembers
.
map
(
async
(
member
)
=>
{
chatMembers
.
map
(
async
(
member
)
=>
{
...
@@ -573,7 +573,7 @@ export default {
...
@@ -573,7 +573,7 @@ export default {
},
},
async
[
ChatStore
.
ACTION_TERINATE_CHAT
]({
state
,
dispatch
})
{
async
[
ChatStore
.
ACTION_TERINATE_CHAT
]({
state
,
dispatch
})
{
const
v
=
state
[
ChatStore
.
STATE_CHAT_CURRENT_CHAT_VERSION
];
const
v
=
state
[
ChatStore
.
STATE_CHAT_CURRENT_CHAT_VERSION
];
if
(
v
==
null
)
return
if
(
v
==
null
)
return
;
const
id
=
Number
(
const
id
=
Number
(
state
[
ChatStore
.
STATE_CHAT_CURRENT_CHAT_UNIPLAT_ID
]
state
[
ChatStore
.
STATE_CHAT_CURRENT_CHAT_UNIPLAT_ID
]
);
);
...
...
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