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
887ff12a
authored
Dec 17, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
u
parent
794e3e97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
store/index.ts
store/index.ts
View file @
887ff12a
...
...
@@ -469,7 +469,7 @@ export default {
.
sort
();
const
last
=
ts
[
ts
.
length
-
1
];
const
execute
=
()
=>
new
Promise
<
ChatType
[]
>
((
resolve
)
=>
{
new
Promise
<
ChatType
[]
>
((
resolve
,
reject
)
=>
{
Chat
.
onReady
(()
=>
{
xim
.
fetchChatListAfter
(
last
)
!
.
then
((
r
)
=>
{
const
list
=
filterActiveChats
(
...
...
@@ -483,7 +483,7 @@ export default {
);
}
resolve
(
buildUnreadMessage
(
cache
));
});
})
.
catch
(
reject
)
;
});
}).
finally
(()
=>
(
loadingChatList
=
false
));
...
...
@@ -491,7 +491,7 @@ export default {
}
const
execute
=
()
=>
new
Promise
<
ChatType
[]
>
((
resolve
)
=>
{
new
Promise
<
ChatType
[]
>
((
resolve
,
reject
)
=>
{
Chat
.
onReady
(()
=>
{
xim
.
fetchChatList
().
then
((
data
)
=>
{
if
(
!
data
)
{
...
...
@@ -506,7 +506,7 @@ export default {
dbController
.
saveChatList
(
items
);
commit
(
ChatStore
.
MUTATION_SAVE_CHAT_LIST
,
items
);
resolve
(
buildUnreadMessage
(
items
));
});
})
.
catch
(
reject
)
;
});
}).
finally
(()
=>
(
loadingChatList
=
false
));
...
...
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