Fix new member joining, close #172

This commit is contained in:
Him188 2020-04-10 20:31:20 +08:00
parent d8a5291880
commit f11690472a

View File

@ -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 {