test(matrix): bind live replacement marker

This commit is contained in:
joshavant
2026-08-12 15:58:14 -05:00
committed by Josh Avant
parent d9b598ce1f
commit 228d0a5264
@@ -134,7 +134,7 @@ export async function runStreamingReplacementRetentionScenario(
event.roomId === context.roomId &&
event.sender === context.sutUserId &&
isMatrixQaMessageLikeKind(event.kind) &&
doesMatrixQaReplyBodyMatchToken(event, secondText) &&
event.body?.includes(secondToken) === true &&
event.eventId !== secondDraftEventId &&
event.replacesEventId === undefined,
roomId: context.roomId,
@@ -198,7 +198,8 @@ export async function runStreamingReplacementRetentionScenario(
redactionEventId: secondRedaction.event.eventId,
redactionTargetEventId: secondRedaction.event.redactsEventId,
secondDriverEventId,
secondReply: buildMatrixReplyArtifact(secondReply.event, secondText),
secondReply: buildMatrixReplyArtifact(secondReply.event),
secondToken,
},
details: [
`retained draft event: ${firstDraftEventId}`,