feat: better fake forwardMsg logic & display

This commit is contained in:
pk5ls20
2024-10-27 09:33:20 +08:00
parent 60c6a409b3
commit 0e2d042458
3 changed files with 6 additions and 5 deletions

View File

@@ -56,7 +56,7 @@ export class ForwardMsgBuilder {
if (!source) {
source = isGroupMsg ? "群聊的聊天记录" :
msg.length
? Array.from(new Set(msg.map(m => m.senderName)))
? Array.from(new Set(msg.slice(0, 4).map(m => m.senderName)))
.join('和') + '的聊天记录'
: '聊天记录';
}