diff --git a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/impl.kt b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/impl.kt index e83658e35..77beea543 100644 --- a/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/impl.kt +++ b/mirai-core/src/commonMain/kotlin/net.mamoe.mirai/message/data/impl.kt @@ -204,6 +204,7 @@ internal fun <M : Message> MessageChain.firstOrNullImpl(key: Message.Key<M>): M? FriendFlashImage -> firstIsInstanceOrNull<FriendFlashImage>() CustomMessage -> firstIsInstanceOrNull() CustomMessageMetadata -> firstIsInstanceOrNull() + ForwardMessage -> firstIsInstanceOrNull() else -> { this.forEach { message -> if (message is CustomMessage) {