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
63a6d340
authored
Oct 14, 2021
by
Sixong.Zhu
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
u
parent
d7ef878e
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
store/index.ts
xim/chat-type.ts
xim/xim.ts
store/index.ts
View file @
63a6d340
...
...
@@ -9,7 +9,6 @@ import { getChatModelInfo } from "../utils/chat-info";
import
{
decode
}
from
"../utils/jwt"
;
import
{
getUserInfo
}
from
"../utils/user-info"
;
import
Chat
from
"../xim"
;
import
chatType
from
"../xim/chat-type"
;
import
{
Chat
as
ChatType
,
Message
}
from
"../xim/models/chat"
;
import
xim
,
{
ChatNotifyListener
}
from
"../xim/xim"
;
...
...
@@ -86,6 +85,8 @@ function buildChatItem(chat: RawChatItem) {
return
{
...
chat
,
chat_id
:
chat
.
id
}
as
ChatType
;
}
const
chatType
=
"group"
;
const
filterActiveChats
=
(
items
:
RawChatItem
[])
=>
{
return
items
.
filter
(
(
i
)
=>
...
...
@@ -93,7 +94,7 @@ const filterActiveChats = (items: RawChatItem[]) => {
!
i
.
is_exited
&&
!
i
.
is_remove
&&
!
i
.
is_deleted
&&
i
.
type
===
"group"
i
.
type
===
chatType
);
};
...
...
xim/chat-type.ts
deleted
100644 → 0
View file @
d7ef878e
export
default
"group"
;
xim/xim.ts
View file @
63a6d340
import
Vue
from
"vue"
;
import
{
wampDebug
,
XChatClient
}
from
"xchat-client"
;
import
chatType
from
"../xim/chat-type"
;
import
{
TokenStringGetter
}
from
"./../model"
;
import
{
ChatLoggerService
}
from
"./logger"
;
import
{
Message
,
NotifyMessage
}
from
"./models/chat"
;
...
...
@@ -34,6 +32,8 @@ export enum Kind {
UserNotify
=
"user_notify"
,
}
const
chatType
=
"group"
;
export
class
Xim
{
private
eventBus
=
new
Vue
();
...
...
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