Skip to content

Commit

Permalink
Ignore NewContact.SystemMsgNewGroup, subType=0, groupMsgType=8, fix #…
Browse files Browse the repository at this point in the history
  • Loading branch information
Him188 committed Aug 27, 2021
1 parent 003bbd4 commit fb6335d
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,22 @@ internal class GroupOrMemberListNoticeProcessor(
if (this == null) return
markAsConsumed()
when (subType) {
0 -> {
if (groupMsgType == 8) {
// #1388: 使用手机TIM邀请入群,我为管理员,成功邀请 bot 入群

// 能正常解析 BotInvitedJoinGroupRequestEvent 和 BotJoinGroupEvent.Active, 因此忽略该通知
return
} else {
throw contextualBugReportException(
"解析 NewContact.SystemMsgNewGroup, subType=5, groupMsgType=$groupMsgType",
data._miraiContentToString(),
null,
"并描述此时机器人是否被邀请加入群等其他",
)
}
}

// 处理被邀请入群 或 处理成员入群申请
1 -> when (groupMsgType) {
1 -> {
Expand Down

0 comments on commit fb6335d

Please sign in to comment.