Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
Simplxss committed Mar 23, 2024
1 parent ad313f3 commit cdc664f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ internal object ForwardMessageService : ForwardMessageServiceGrpcKt.ForwardMessa
}.getOrThrow()

return UploadForwardMessageResponse.newBuilder().apply {
this.resId = forwardMessage.id
this.resId = forwardMessage.resId
}.build()
}

Expand Down
9 changes: 1 addition & 8 deletions xposed/src/main/java/kritor/service/MessageService.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion xposed/src/main/java/qq/service/msg/NtMsgConvertor.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cdc664f

Please sign in to comment.