mirror of https://github.com/Nofated095/Q2TG.git
fix: 使用 NFT 用户名时 @ 自己的消息出现 @null 的情况
This commit is contained in:
parent
e91af9426b
commit
b555a4caec
|
@ -351,7 +351,9 @@ export default class ForwardService {
|
|||
}
|
||||
|
||||
if (this.instance.workMode === 'personal' && event.message_type === 'group' && event.atme && !replyTo) {
|
||||
message += `\n<b>@${this.instance.userMe.username}</b>`;
|
||||
message += `\n<b>@${this.instance.userMe.usernames?.length ?
|
||||
this.instance.userMe.usernames[0].username :
|
||||
this.instance.userMe.username}</b>`;
|
||||
}
|
||||
|
||||
// 发送消息
|
||||
|
|
Loading…
Reference in New Issue