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
a5208689
Commit
a5208689
authored
Mar 31, 2020
by
Him188
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix at
parent
5ae1c814
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/message/atImpl.kt
...onMain/kotlin/net/mamoe/mirai/qqandroid/message/atImpl.kt
+4
-3
No files found.
mirai-core-qqandroid/src/commonMain/kotlin/net/mamoe/mirai/qqandroid/message/atImpl.kt
View file @
a5208689
...
...
@@ -12,11 +12,12 @@ package net.mamoe.mirai.qqandroid.message
import
kotlinx.io.core.buildPacket
import
kotlinx.io.core.readBytes
import
net.mamoe.mirai.message.data.At
import
net.mamoe.mirai.message.data.AtAll
import
net.mamoe.mirai.qqandroid.network.protocol.data.proto.ImMsgBody
internal
fun
At
.
toJceData
():
ImMsgBody
.
Text
{
val
text
=
this
.
toString
()
val
text
=
this
.
display
return
ImMsgBody
.
Text
(
str
=
text
,
attr6Buf
=
buildPacket
{
...
...
@@ -34,12 +35,12 @@ internal fun At.toJceData(): ImMsgBody.Text {
internal
val
atAllData
=
ImMsgBody
.
Elem
(
text
=
ImMsgBody
.
Text
(
str
=
"@全体成员"
,
str
=
AtAll
.
display
,
attr6Buf
=
buildPacket
{
// MessageForText$AtTroopMemberInfo
writeShort
(
1
)
// const
writeShort
(
0
)
// startPos
writeShort
(
"@全体成员"
.
length
.
toShort
())
// textLen
writeShort
(
AtAll
.
display
.
length
.
toShort
())
// textLen
writeByte
(
1
)
// flag, may=1
writeInt
(
0
)
// uin
writeShort
(
0
)
// const
...
...
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