fix(channels): preserve keyed progress state updates

This commit is contained in:
Vincent Koc 2026-06-22 12:51:33 +08:00
parent 3ff59df960
commit e114001cca
No known key found for this signature in database

View file

@ -1133,8 +1133,7 @@ export function mergeChannelProgressDraftLine<TLine extends string | ChannelProg
);
if (existingIndex >= 0) {
const replacement = mergeProgressDraftLineUpdate(lines[existingIndex], line);
const replacementIdentity = normalizeChannelProgressDraftLineIdentity(replacement);
if (normalizeChannelProgressDraftLineIdentity(lines[existingIndex]) === replacementIdentity) {
if (replacement === lines[existingIndex]) {
return lines;
}
const next = [...lines];