1
0
mirror of https://github.com/mamoe/mirai.git synced 2025-04-25 04:50:26 +08:00

Fix baseKeys of OnlineMessageSource.Outgoing and OnlineMessageSource.Incoming

This commit is contained in:
Him188 2020-12-30 19:37:32 +08:00
parent 8732cc1fc4
commit 5049836eaa

View File

@ -332,7 +332,7 @@ public sealed class OnlineMessageSource : MessageSource() {
*/
public sealed class Outgoing : OnlineMessageSource() {
public companion object Key :
AbstractPolymorphicMessageKey<MessageSource, Outgoing>(MessageSource, { it.safeCast() })
AbstractPolymorphicMessageKey<OnlineMessageSource, Outgoing>(OnlineMessageSource, { it.safeCast() })
public abstract override val sender: Bot
public abstract override val target: Contact
@ -404,7 +404,7 @@ public sealed class OnlineMessageSource : MessageSource() {
}
public companion object Key :
AbstractPolymorphicMessageKey<MessageSource, FromTemp>(MessageSource, { it.safeCast() })
AbstractPolymorphicMessageKey<OnlineMessageSource, FromTemp>(OnlineMessageSource, { it.safeCast() })
}
}