🎨 优化是否有人加入了群聊判断逻辑 (#159)

This commit is contained in:
李寻欢 2022-12-12 17:23:08 +08:00 committed by GitHub
parent 270e290472
commit 659bf1e522
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -792,7 +792,7 @@ func (m *Message) IsPaiYiPai() bool {
// IsJoinGroup 判断是否有人加入了群聊
func (m *Message) IsJoinGroup() bool {
return m.IsSystem() && strings.Contains(m.Content, "加入了群聊") && m.IsSendByGroup()
return m.IsSystem() && (strings.Contains(m.Content, "加入了群聊") || strings.Contains(m.Content, "分享的二维码加入群聊")) && m.IsSendByGroup()
}
// IsTickled 判断消息是否为拍一拍