Compare commits

...

3 Commits

Author SHA1 Message Date
992f02ee1c Merge pull request 'hotfix' (#93) from hotfix into main
All checks were successful
BuildImage / build-image (push) Successful in 2m15s
Reviewed-on: #93
2024-07-29 09:16:53 +08:00
7b7f9dcdb4 Merge remote-tracking branch 'origin/hotfix' into hotfix 2024-07-29 09:16:06 +08:00
70b0ff8a50 🐛 修复邀请入群通知会识别群内的群邀请的BUG(群内的是被转发过的,属于无效信息) 2024-07-29 09:16:01 +08:00

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 {