Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix[mobile soup]: missing sender names (#2448)

Peter Chinmanbec6d81ac732
diff --git a/js/app/packages/entity/src/composed/ListEntity.tsx b/js/app/packages/entity/src/composed/ListEntity.tsx
index 5bf370de70..c2682352cd 100644
--- a/js/app/packages/entity/src/composed/ListEntity.tsx
+++ b/js/app/packages/entity/src/composed/ListEntity.tsx
@@ -503,11 +503,10 @@ function NarrowInboxLayout(props: LayoutProps) {
>
<StaticMarkdown
theme={twoLineClampMarkdownTheme}
- markdown={
- (mostRecentMessageSenderName
- ? `**${mostRecentMessageSenderName.firstName()}:** `
- : '') + msg().content.trim()
- }
+ markdown={(() => {
+ const name = mostRecentMessageSenderName?.firstName();
+ return (name ? `**${name}:** ` : '') + msg().content.trim();
+ })()}
singleLine
/>
</Show>