no message

This commit is contained in:
kuaifan 2022-06-20 07:31:59 +08:00
parent 3a0d967800
commit ce5948d87a
5 changed files with 15 additions and 13 deletions

2
public/js/app.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +1 @@
a45450f6a7358f7c
c2cf47af32eff6e3

View File

@ -225,15 +225,17 @@ export default {
}
if (dialogKey) {
const {name, last_msg} = dialog;
let msgKey;
switch (last_msg.type) {
case 'text':
msgKey = last_msg.msg.text.replace(/<[^>]+>/g,"")
break
case 'meeting':
case 'file':
msgKey = last_msg.msg.name
break
let msgKey = "";
if (last_msg) {
switch (last_msg.type) {
case 'text':
msgKey = last_msg.msg.text.replace(/<[^>]+>/g,"")
break
case 'meeting':
case 'file':
msgKey = last_msg.msg.name
break
}
}
if (!$A.strExists(name, dialogKey) && !$A.strExists(msgKey, dialogKey)) {
return false;