mirror of
https://github.com/mamoe/mirai.git
synced 2025-01-05 23:50:08 +08:00
[core] Private quote reply decode
This commit is contained in:
parent
648997b545
commit
fe14600018
@ -162,12 +162,21 @@ internal fun OfflineMessageSourceImplData(
|
||||
it.originalMessage // initialize lazy, to make isOriginalMessageInitialized true.
|
||||
}
|
||||
|
||||
@Suppress("LocalVariableName")
|
||||
internal fun OfflineMessageSourceImplData(
|
||||
delegate: ImMsgBody.SourceMsg,
|
||||
bot: Bot,
|
||||
messageSourceKind: MessageSourceKind,
|
||||
groupIdOrZero: Long,
|
||||
_messageSourceKind: MessageSourceKind,
|
||||
_groupIdOrZero: Long,
|
||||
): OfflineMessageSourceImplData {
|
||||
var messageSourceKind = _messageSourceKind
|
||||
var groupIdOrZero = _groupIdOrZero
|
||||
|
||||
if (messageSourceKind != MessageSourceKind.GROUP && delegate.troopName.isNotEmpty()) { // FROM GROUP: 单独回复
|
||||
messageSourceKind = MessageSourceKind.GROUP
|
||||
groupIdOrZero = 0
|
||||
}
|
||||
|
||||
return OfflineMessageSourceImplData(
|
||||
kind = messageSourceKind,
|
||||
ids = delegate.origSeqs.fixIds(messageSourceKind),
|
||||
|
Loading…
Reference in New Issue
Block a user