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