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:
parent
8732cc1fc4
commit
5049836eaa
@ -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() })
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user