mirror of https://github.com/Nofated095/Q2TG.git
fix: 在私聊时不应该显示 RichHeader
This commit is contained in:
parent
6a01f529f5
commit
000da5c93f
|
@ -382,7 +382,7 @@ export default class ForwardService {
|
|||
else if (files.length) {
|
||||
messageToSend.file = files;
|
||||
}
|
||||
else if ((pair.flags | this.instance.flags) & flags.RICH_HEADER) {
|
||||
else if (event.message_type === 'group' && (pair.flags | this.instance.flags) & flags.RICH_HEADER) {
|
||||
// 没有文件时才能显示链接预览
|
||||
richHeaderUsed = true;
|
||||
const url = new URL('https://q2tg-header.clansty.workers.dev');
|
||||
|
|
Loading…
Reference in New Issue