[core] Private quote reply decode

This commit is contained in:
Karlatemp 2023-02-17 23:51:28 +08:00
parent 648997b545
commit fe14600018
No known key found for this signature in database
GPG Key ID: BA173CA2B9956C59

View File

@ -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),