mirror of
https://github.com/whitechi73/OpenShamrock.git
synced 2024-08-14 13:12:17 +08:00
fix build error
This commit is contained in:
parent
ad313f384c
commit
cdc664f44a
@ -37,7 +37,7 @@ internal object ForwardMessageService : ForwardMessageServiceGrpcKt.ForwardMessa
|
||||
}.getOrThrow()
|
||||
|
||||
return UploadForwardMessageResponse.newBuilder().apply {
|
||||
this.resId = forwardMessage.id
|
||||
this.resId = forwardMessage.resId
|
||||
}.build()
|
||||
}
|
||||
|
||||
|
@ -14,12 +14,7 @@ import kotlinx.coroutines.withTimeoutOrNull
|
||||
import moe.fuqiuluo.shamrock.helper.Level
|
||||
import moe.fuqiuluo.shamrock.helper.LogCenter
|
||||
import protobuf.auto.toByteArray
|
||||
import protobuf.message.ContentHead
|
||||
import protobuf.message.Elem
|
||||
import protobuf.message.MsgBody
|
||||
import protobuf.message.PbSendMsgReq
|
||||
import protobuf.message.RichText
|
||||
import protobuf.message.RoutingHead
|
||||
import protobuf.message.*
|
||||
import protobuf.message.element.GeneralFlags
|
||||
import protobuf.message.routing.C2C
|
||||
import protobuf.message.routing.Grp
|
||||
@ -28,9 +23,7 @@ import qq.service.contact.longPeer
|
||||
import qq.service.internals.NTServiceFetcher
|
||||
import qq.service.msg.MessageHelper
|
||||
import qq.service.msg.NtMsgConvertor
|
||||
import qq.service.msg.toKritorEventMessages
|
||||
import qq.service.msg.toKritorReqMessages
|
||||
import qq.service.msg.toKritorResponseMessages
|
||||
import kotlin.coroutines.resume
|
||||
import kotlin.random.Random
|
||||
import kotlin.random.nextUInt
|
||||
|
@ -227,7 +227,7 @@ internal object ForwardMessageHelper : QQInterfaces() {
|
||||
val resId = rsp.sendResult?.resId ?: return Result.failure(Exception("unable to upload multi message"))
|
||||
|
||||
return Result.success(ForwardElement.newBuilder().apply {
|
||||
this.id = resId
|
||||
this.resId = resId
|
||||
this.summary = summary
|
||||
this.uniseq = UUID.randomUUID().toString()
|
||||
this.description = desc.slice(0..if (i < 3) i else 3).joinToString("\n")
|
||||
|
@ -839,7 +839,7 @@ object NtMsgConvertor {
|
||||
}
|
||||
|
||||
private suspend fun forwardConvertor(contact: Contact, msgId: Long, sourceForward: Element): Result<MsgElement> {
|
||||
val resId = sourceForward.forward.id
|
||||
val resId = sourceForward.forward.resId
|
||||
val filename = sourceForward.forward.uniseq
|
||||
var summary = sourceForward.forward.summary
|
||||
val descriptions = sourceForward.forward.description
|
||||
|
Loading…
x
Reference in New Issue
Block a user