fix(message): 修复合并转发中动画表情吞掉后续消息段 (#2097)
Release Tag / validate-version (push) Canceled after 0s
Release Tag / trigger-release (push) Canceled after 0s

This commit is contained in:
手瓜一十雪 committed 2026-10-12 12:26:58 +08:00
1 parent 7471e3ecd6
commit bbd0d2aca3
2 files changed
+138

No files matched your search

@@ -211,12 +211,14 @@ export class PacketMsgReplyElement extends IPacketMsgElement<SendReplyElement> {
export class PacketMsgFaceElement extends IPacketMsgElement<SendFaceElement> {
faceId: number;
faceText: string;
isLargeFace: boolean;
resultId?: string;
constructor (element: SendFaceElement) {
super(element);
this.faceId = element.faceElement.faceIndex;
this.faceText = element.faceElement.faceText || '[表情]';
this.resultId = element.faceElement.resultId;
this.isLargeFace = element.faceElement.faceType === FaceType.AniSticke;
}
@@ -237,6 +239,12 @@ export class PacketMsgFaceElement extends IPacketMsgElement<SendFaceElement> {
}),
businessType: 1,
},
}, {
// QQ consumes the element after an animated face as compatibility text.
// Without it, the next user-supplied message segment is discarded.
text: {
str: this.faceText,
},
}];
} else if (this.faceId < 260) {
return [{