mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-24 23:20:09 +08:00
Fix new member joining, close #172
This commit is contained in:
parent
d8a5291880
commit
f11690472a
@ -84,7 +84,7 @@ internal class OnlinePush {
|
||||
)
|
||||
}
|
||||
|
||||
val group = bot.getGroup(pbPushMsg.msg.msgHead.groupInfo!!.groupCode)
|
||||
val group = bot.getGroupOrNull(pbPushMsg.msg.msgHead.groupInfo!!.groupCode) ?: return null // 机器人还正在进群
|
||||
val sender = group[pbPushMsg.msg.msgHead.fromUin] as MemberImpl
|
||||
val name = extraInfo?.groupCard?.run {
|
||||
try {
|
||||
|
Loading…
Reference in New Issue
Block a user