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
a8b6a936
authored
Oct 12, 2021
by
zhousil
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
解决控制台报错
parent
b707d4d5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
database/index.ts
database/index.ts
View file @
a8b6a936
...
...
@@ -60,7 +60,7 @@ class ChatCacheDatabaseController {
// eslint-disable-next-line @typescript-eslint/no-this-alias
const
that
=
this
;
const
setupDb
=
()
=>
{
const
db
=
that
.
messageDatabases
.
get
(
k
);
const
db
=
that
.
messageDatabases
.
get
(
k
)
as
IDBDatabase
;
try
{
that
.
buildTables
(
db
,
this
.
chatMessageKey
,
"id"
);
}
catch
(
e
)
{
...
...
@@ -127,7 +127,7 @@ class ChatCacheDatabaseController {
t
.
onsuccess
=
(
r
)
=>
{
const
chat
=
(
r
.
target
as
any
).
result
as
Chat
;
if
(
chat
)
{
chat
.
eid
=
p
.
eid
;
chat
.
eid
=
p
.
eid
as
string
;
p
.
ts
&&
(
chat
.
last_msg_ts
=
p
.
ts
);
p
.
eid
&&
(
chat
.
last_msg_sender
=
p
.
eid
);
p
.
type
&&
(
chat
.
last_msg_type
=
p
.
type
);
...
...
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