|
|
@@ -1,5 +1,5 @@
|
|
|
/*
|
|
|
- * Copyright 2019-2022 Mamoe Technologies and contributors.
|
|
|
+ * Copyright 2019-2023 Mamoe Technologies and contributors.
|
|
|
*
|
|
|
* 此源代码的使用受 GNU AFFERO GENERAL PUBLIC LICENSE version 3 许可证的约束, 可以在以下链接找到该许可证.
|
|
|
* Use of this source code is governed by the GNU AGPLv3 license that can be found through the following link.
|
|
|
@@ -96,7 +96,7 @@ internal class OnlineMessageSourceFromFriendImpl(
|
|
|
}
|
|
|
|
|
|
|
|
|
- private val jceData: ImMsgBody.SourceMsg by lazy { msg.toJceDataPrivate(internalIds) }
|
|
|
+ private val jceData: ImMsgBody.SourceMsg by lazy { msg.toJceDataPrivate() }
|
|
|
|
|
|
override fun toJceData(): ImMsgBody.SourceMsg = jceData
|
|
|
|
|
|
@@ -161,7 +161,7 @@ internal class OnlineMessageSourceFromStrangerImpl(
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private val jceData: ImMsgBody.SourceMsg by lazy { msg.toJceDataPrivate(internalIds) }
|
|
|
+ private val jceData: ImMsgBody.SourceMsg by lazy { msg.toJceDataPrivate() }
|
|
|
|
|
|
override fun toJceData(): ImMsgBody.SourceMsg = jceData
|
|
|
|
|
|
@@ -170,7 +170,7 @@ internal class OnlineMessageSourceFromStrangerImpl(
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-private fun List<MsgComm.Msg>.toJceDataPrivate(ids: IntArray): ImMsgBody.SourceMsg {
|
|
|
+private fun List<MsgComm.Msg>.toJceDataPrivate(): ImMsgBody.SourceMsg {
|
|
|
val elements = flatMap { it.msgBody.richText.elems }.toMutableList().also {
|
|
|
if (it.lastOrNull()?.elemFlags2 == null) it.add(ImMsgBody.Elem(elemFlags2 = ImMsgBody.ElemFlags2()))
|
|
|
}
|
|
|
@@ -279,7 +279,7 @@ internal class OnlineMessageSourceFromTempImpl(
|
|
|
get() = msg.first().msgHead.toUin
|
|
|
|
|
|
|
|
|
- private val jceData: ImMsgBody.SourceMsg by lazy { msg.toJceDataPrivate(internalIds) }
|
|
|
+ private val jceData: ImMsgBody.SourceMsg by lazy { msg.toJceDataPrivate() }
|
|
|
override fun toJceData(): ImMsgBody.SourceMsg = jceData
|
|
|
|
|
|
override fun <D, R> accept(visitor: MessageVisitor<D, R>, data: D): R {
|