mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-08 23:40:14 +08:00
Ignore unrecognized message types on messageToElems transformation
This commit is contained in:
parent
b659d55fec
commit
e381a2b33f
@ -238,7 +238,10 @@ internal fun MessageChain.toRichTextElems(
|
|||||||
is InternalFlagOnlyMessage, is ShowImageFlag -> {
|
is InternalFlagOnlyMessage, is ShowImageFlag -> {
|
||||||
// ignore
|
// ignore
|
||||||
}
|
}
|
||||||
else -> error("unsupported message type: ${currentMessage::class.simpleName}")
|
else -> {
|
||||||
|
// unrecognized types are ignored
|
||||||
|
// error("unsupported message type: ${currentMessage::class.simpleName}")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.forEach(::transformOneMessage)
|
this.forEach(::transformOneMessage)
|
||||||
|
Loading…
Reference in New Issue
Block a user