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