Skip to content

Commit

Permalink
fix: 修改管理员权限时向 QQ 发送的加入群事件
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Dec 18, 2024
1 parent 4811e59 commit 1eeb755
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main/src/controllers/ForwardController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,10 @@ export default class ForwardController {

private onTelegramParticipant = async (event: Api.UpdateChannelParticipant) => {
try {
this.log.debug('收到 TG 群成员事件', event);
const pair = this.instance.forwardPairs.find(event.channelId);
if ((pair?.flags | this.instance.flags) & flags.DISABLE_JOIN_NOTICE) return false;
if (event.prevParticipant && !(event.prevParticipant instanceof Api.ChannelParticipantBanned)) return false;
if (
!(event.newParticipant instanceof Api.ChannelParticipantAdmin) &&
!(event.newParticipant instanceof Api.ChannelParticipantCreator) &&
Expand Down

0 comments on commit 1eeb755

Please sign in to comment.