mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-05 03:23:49 +08:00
parent
115a5f1da7
commit
cf9fa71646
@ -114,7 +114,7 @@ func ToArrayMessage(e []message.IMessageElement, source MessageSource) (r []glob
|
|||||||
if reply != nil && source.SourceType&(MessageSourceGroup|MessageSourcePrivate) != 0 {
|
if reply != nil && source.SourceType&(MessageSourceGroup|MessageSourcePrivate) != 0 {
|
||||||
replyElem := reply.(*message.ReplyElement)
|
replyElem := reply.(*message.ReplyElement)
|
||||||
rid := int64(source.PrimaryID)
|
rid := int64(source.PrimaryID)
|
||||||
if rid == 0 {
|
if source.SourceType == MessageSourcePrivate {
|
||||||
rid = replyElem.Sender
|
rid = replyElem.Sender
|
||||||
}
|
}
|
||||||
if replyElem.GroupID != 0 {
|
if replyElem.GroupID != 0 {
|
||||||
@ -280,7 +280,7 @@ func ToStringMessage(e []message.IMessageElement, source MessageSource, isRaw ..
|
|||||||
if reply != nil && source.SourceType&(MessageSourceGroup|MessageSourcePrivate) != 0 {
|
if reply != nil && source.SourceType&(MessageSourceGroup|MessageSourcePrivate) != 0 {
|
||||||
replyElem := reply.(*message.ReplyElement)
|
replyElem := reply.(*message.ReplyElement)
|
||||||
rid := int64(source.PrimaryID)
|
rid := int64(source.PrimaryID)
|
||||||
if rid == 0 {
|
if source.SourceType == MessageSourcePrivate {
|
||||||
rid = replyElem.Sender
|
rid = replyElem.Sender
|
||||||
}
|
}
|
||||||
if replyElem.GroupID != 0 {
|
if replyElem.GroupID != 0 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user