no message

This commit is contained in:
kuaifan 2022-06-20 07:28:25 +08:00
parent 093de52230
commit 3a0d967800
5 changed files with 16 additions and 7 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 @@
75b861862ebcf29b
a45450f6a7358f7c

View File

@ -224,9 +224,18 @@ export default {
return false;
}
if (dialogKey) {
let existName = $A.strExists(dialog.name, dialogKey);
let existMsg = dialog.last_msg && dialog.last_msg.type === 'text' && $A.strExists(dialog.last_msg.msg.text, dialogKey);
if (!existName && !existMsg) {
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
}
if (!$A.strExists(name, dialogKey) && !$A.strExists(msgKey, dialogKey)) {
return false;
}
} else if (dialogActive) {