mirror of
https://github.com/mamoe/mirai.git
synced 2026-09-05 22:54:55 +08:00
Fix sendMessage
This commit is contained in:
@@ -153,7 +153,7 @@ internal abstract class QQAndroidBotBase constructor(
|
||||
getGroup(source.groupId).checkBotPermissionOperator()
|
||||
}
|
||||
|
||||
println(source._miraiContentToString())
|
||||
// println(source._miraiContentToString())
|
||||
source.ensureSequenceIdAvailable()
|
||||
|
||||
network.run {
|
||||
|
||||
@@ -284,7 +284,7 @@ internal class MessageSvc {
|
||||
messageRandom = Random.nextInt().absoluteValue,
|
||||
senderId = client.uin,
|
||||
toUin = toUin,
|
||||
time = currentTimeSeconds + client.timeDifference,
|
||||
time = currentTimeSeconds,
|
||||
groupId = 0,
|
||||
sequenceId = client.atomicNextMessageSequenceId(),
|
||||
originalMessage = message
|
||||
@@ -335,7 +335,7 @@ internal class MessageSvc {
|
||||
messageRandom = Random.nextInt().absoluteValue,
|
||||
senderId = client.uin,
|
||||
toUin = Group.calculateGroupUinByGroupCode(groupCode),
|
||||
time = currentTimeSeconds + client.timeDifference,
|
||||
time = currentTimeSeconds,
|
||||
groupId = groupCode,
|
||||
originalMessage = message//,
|
||||
// sourceMessage = message
|
||||
|
||||
Reference in New Issue
Block a user