Fix group member reply trimming

This commit is contained in:
Cohee 2023-08-29 14:53:39 +03:00
parent b15ff7d23e
commit f60ddd6465
1 changed files with 1 additions and 1 deletions

View File

@ -1912,7 +1912,7 @@ function cleanGroupMessage(getMessage) {
const regex = new RegExp(`(^|\n)${escapeRegex(name)}:`);
const nameMatch = getMessage.match(regex);
if (nameMatch) {
getMessage = getMessage.substring(nameMatch.index + nameMatch[0].length);
getMessage = getMessage.substring(0, nameMatch.index);
}
}
}