🐛 修复邀请入群通知会识别群内的群邀请的BUG(群内的是被转发过的,属于无效信息)

This commit is contained in:
李寻欢 2024-07-29 09:16:01 +08:00
parent 85e28b15a4
commit 70b0ff8a50

View File

@ -27,7 +27,7 @@ func Plugin() {
// 通知邀请入群消息到配置用户
dispatcher.RegisterHandler(func(m *dto.Message) bool {
flag, _ := m.IsInvitationJoinGroup()
return flag
return flag && !m.IsGroup()
}, plugins.NotifyInvitationJoinGroup)
// 被移除群聊通知到配置用户
dispatcher.RegisterHandler(func(m *dto.Message) bool {