mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-20 19:09:12 +08:00
Fix missing ForwardMessage.Key
in firstOrNull
This commit is contained in:
parent
9903ef467c
commit
96ed65442d
@ -204,6 +204,7 @@ internal fun <M : Message> MessageChain.firstOrNullImpl(key: Message.Key<M>): M?
|
|||||||
FriendFlashImage -> firstIsInstanceOrNull<FriendFlashImage>()
|
FriendFlashImage -> firstIsInstanceOrNull<FriendFlashImage>()
|
||||||
CustomMessage -> firstIsInstanceOrNull()
|
CustomMessage -> firstIsInstanceOrNull()
|
||||||
CustomMessageMetadata -> firstIsInstanceOrNull()
|
CustomMessageMetadata -> firstIsInstanceOrNull()
|
||||||
|
ForwardMessage -> firstIsInstanceOrNull()
|
||||||
else -> {
|
else -> {
|
||||||
this.forEach { message ->
|
this.forEach { message ->
|
||||||
if (message is CustomMessage) {
|
if (message is CustomMessage) {
|
||||||
|
Loading…
Reference in New Issue
Block a user