Skip to content

Commit d4203f7

Browse files
committed
Nicer replacement of ph when interrupted
1 parent 616376f commit d4203f7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/common/stores/chat/chats.converters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ export namespace V4ToHeadConverters {
6666

6767
// show the aborted ops: convert a Placeholder fragment [part.pt='ph'] to an Error fragment
6868
if (isVoidFragment(fragment) && isPlaceholderPart(fragment.part))
69-
m.fragments[i] = createErrorContentFragment(`${(fragment.part as any).pText} (did not complete)`);
69+
m.fragments[i] = createErrorContentFragment(`${fragment.part.pText || '(did not complete)'}`);
7070

7171
// [ASSET] [MIGRATION] Convert DBlob image references to Asset references - converts legacy image_ref parts with dblob references to the new reference system
7272
if (isContentOrAttachmentFragment(fragment) && isImageRefPart(fragment.part) && fragment.part.dataRef?.reftype === 'dblob') {

0 commit comments

Comments
 (0)