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
feab4c97
authored
Jan 12, 2022
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
u
parent
9d186753
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
store/index.ts
xim/index.ts
store/index.ts
View file @
feab4c97
...
@@ -117,7 +117,7 @@ export const filterActiveChats = (items: RawChatItem[]) => {
...
@@ -117,7 +117,7 @@ export const filterActiveChats = (items: RawChatItem[]) => {
!
i
.
is_deleted
&&
!
i
.
is_deleted
&&
allowedChatTypes
.
includes
(
i
.
type
)
allowedChatTypes
.
includes
(
i
.
type
)
)
)
.
sort
((
x
,
y
)
=>
(
x
.
update_time
-
y
.
update_time
?
1
:
-
1
)
);
.
sort
((
x
,
y
)
=>
y
.
last_msg_ts
-
x
.
last_msg_ts
);
};
};
export
function
getLastMessageId
(
msgs
:
Message
[]
|
any
)
{
export
function
getLastMessageId
(
msgs
:
Message
[]
|
any
)
{
...
...
xim/index.ts
View file @
feab4c97
...
@@ -151,7 +151,7 @@ class Chat {
...
@@ -151,7 +151,7 @@ class Chat {
.
finally
(()
=>
{
.
finally
(()
=>
{
this
.
registerXimEvent
();
this
.
registerXimEvent
();
if
(
xim
.
isConnected
())
{
if
(
xim
.
isConnected
())
{
setTimeout
(
resolve
,
0
);
setTimeout
(
resolve
,
20
0
);
}
else
{
}
else
{
reject
(
new
Error
(
`xim is not connected`
));
reject
(
new
Error
(
`xim is not connected`
));
}
}
...
...
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