Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Mirai
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
MyCard
Mirai
Commits
5be7f2bb
Commit
5be7f2bb
authored
May 11, 2020
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix #315
parent
d8ef80ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/OnlinePush.ReqPush.kt
...etwork/protocol/packet/chat/receive/OnlinePush.ReqPush.kt
+1
-1
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/events/BotEvents.kt
...mmonMain/kotlin/net.mamoe.mirai/event/events/BotEvents.kt
+2
-2
No files found.
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/network/protocol/packet/chat/receive/OnlinePush.ReqPush.kt
View file @
5be7f2bb
...
...
@@ -516,7 +516,7 @@ internal object Transformers528 : Map<Long, Lambda528> by mapOf(
fun
ModCustomFace
.
transform
(
bot
:
QQAndroidBot
):
Sequence
<
Packet
>
{
if
(
uin
==
bot
.
id
)
{
return
sequenceOf
(
Bot
Face
ChangedEvent
(
bot
))
return
sequenceOf
(
Bot
Avatar
ChangedEvent
(
bot
))
}
val
friend
=
bot
.
getFriendOrNull
(
uin
)
?:
return
emptySequence
()
return
sequenceOf
(
FriendFaceChangedEvent
(
friend
))
...
...
mirai-core/src/commonMain/kotlin/net.mamoe.mirai/event/events/BotEvents.kt
View file @
5be7f2bb
...
...
@@ -93,14 +93,14 @@ data class BotReloginEvent internal constructor(
/**
* [Bot] 头像被修改(通过其他客户端修改了Bot的头像)
*/
data class
Bot
Face
ChangedEvent
(
data class
Bot
Avatar
ChangedEvent
(
override
val
bot
:
Bot
)
:
BotEvent
,
Packet
,
AbstractEvent
()
/**
* [Friend] 头像被修改
*/
data class
Friend
Face
ChangedEvent
(
data class
Friend
Avatar
ChangedEvent
(
override
val
friend
:
Friend
)
:
FriendEvent
,
Packet
,
AbstractEvent
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment