mirror of
https://github.com/mamoe/mirai.git
synced 2025-02-08 18:02:27 +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 -> {
|
||||
// ignore
|
||||
}
|
||||
else -> error("unsupported message type: ${currentMessage::class.simpleName}")
|
||||
else -> {
|
||||
// unrecognized types are ignored
|
||||
// error("unsupported message type: ${currentMessage::class.simpleName}")
|
||||
}
|
||||
}
|
||||
}
|
||||
this.forEach(::transformOneMessage)
|
||||
|
Loading…
Reference in New Issue
Block a user