mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-24 15:00:38 +08:00
Rename isPrevious to previous
This commit is contained in:
parent
c1e0ba721f
commit
13e8443012
@ -140,7 +140,7 @@ data class FriendMessage(
|
|||||||
/**
|
/**
|
||||||
* 是否是在这次登录之前的消息, 即消息记录
|
* 是否是在这次登录之前的消息, 即消息记录
|
||||||
*/
|
*/
|
||||||
val isPrevious: Boolean,
|
val previous: Boolean,
|
||||||
override val sender: QQ,
|
override val sender: QQ,
|
||||||
override val message: MessageChain
|
override val message: MessageChain
|
||||||
) : MessagePacket<QQ>() {
|
) : MessagePacket<QQ>() {
|
||||||
@ -164,7 +164,7 @@ object FriendMessageEventParserAndHandler : KnownEventParserAndHandler<FriendMes
|
|||||||
discardExact(2)//2个0x00
|
discardExact(2)//2个0x00
|
||||||
val message = readMessageChain()
|
val message = readMessageChain()
|
||||||
return FriendMessage(
|
return FriendMessage(
|
||||||
isPrevious = previous,
|
previous = previous,
|
||||||
sender = bot.getQQ(identity.from),
|
sender = bot.getQQ(identity.from),
|
||||||
message = message
|
message = message
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user