mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-09 01:30:17 +08:00
parent
60190d373c
commit
1f5f0e269c
@ -49,25 +49,15 @@ internal interface MessageSourceInternal {
|
||||
}
|
||||
|
||||
@Suppress("RedundantSuspendModifier", "unused")
|
||||
internal suspend inline fun MessageSource.ensureSequenceIdAvailable() {
|
||||
// obsolete but keep for future
|
||||
return
|
||||
/*
|
||||
if (this is MessageSourceToGroupImpl) {
|
||||
this.ensureSequenceIdAvailable()
|
||||
}*/
|
||||
internal suspend fun MessageSource.ensureSequenceIdAvailable() {
|
||||
if (this is OnlineMessageSourceToGroupImpl) {
|
||||
ensureSequenceIdAvailable()
|
||||
}
|
||||
}
|
||||
|
||||
@Suppress("RedundantSuspendModifier", "unused")
|
||||
internal suspend inline fun Message.ensureSequenceIdAvailable() {
|
||||
// no suspend.
|
||||
|
||||
// obsolete but keep for future
|
||||
return
|
||||
/*
|
||||
if (this is MessageSourceToGroupImpl) {
|
||||
this.ensureSequenceIdAvailable()
|
||||
}*/
|
||||
(this as? MessageChain)?.sourceOrNull?.ensureSequenceIdAvailable()
|
||||
}
|
||||
|
||||
@Serializable(OnlineMessageSourceFromFriendImpl.Serializer::class)
|
||||
|
Loading…
Reference in New Issue
Block a user