mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-24 23:20:09 +08:00
Fix #383
This commit is contained in:
parent
34d70f9d5b
commit
89386904b1
@ -705,7 +705,13 @@ internal abstract class QQAndroidBotBase constructor(
|
|||||||
|
|
||||||
@LowLevelAPI
|
@LowLevelAPI
|
||||||
@MiraiExperimentalAPI
|
@MiraiExperimentalAPI
|
||||||
override suspend fun _lowLevelSolveNewFriendRequestEvent(eventId: Long, fromId: Long, fromNick: String, accept: Boolean, blackList: Boolean) {
|
override suspend fun _lowLevelSolveNewFriendRequestEvent(
|
||||||
|
eventId: Long,
|
||||||
|
fromId: Long,
|
||||||
|
fromNick: String,
|
||||||
|
accept: Boolean,
|
||||||
|
blackList: Boolean
|
||||||
|
) {
|
||||||
network.apply {
|
network.apply {
|
||||||
NewContact.SystemMsgNewFriend.Action(
|
NewContact.SystemMsgNewFriend.Action(
|
||||||
bot.client,
|
bot.client,
|
||||||
@ -761,6 +767,7 @@ internal abstract class QQAndroidBotBase constructor(
|
|||||||
accept = accept,
|
accept = accept,
|
||||||
blackList = blackList
|
blackList = blackList
|
||||||
).sendWithoutExpect()
|
).sendWithoutExpect()
|
||||||
|
if (accept ?: return)
|
||||||
groups[groupId].apply {
|
groups[groupId].apply {
|
||||||
members.delegate.addLast(newMember(object : MemberInfo {
|
members.delegate.addLast(newMember(object : MemberInfo {
|
||||||
override val nameCard: String get() = ""
|
override val nameCard: String get() = ""
|
||||||
|
Loading…
Reference in New Issue
Block a user