fix: at都被挤到消息最前面的问题

This commit is contained in:
ikechan8370 2023-04-12 20:03:41 +08:00
parent 7bf5996dce
commit 8bdbd623b3
10 changed files with 18 additions and 53 deletions

View file

@ -489,6 +489,10 @@ export async function convertFaces (msg, handleAt = false, e) {
if (!foundFace) {
if (handleAt && msg[i] === '@') {
foundAt = true
if (tmpMsg) {
msgs.push(tmpMsg)
tmpMsg = ''
}
continue
}
if (handleAt && foundAt) {