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(soup): fix sender reactivity on mobile inbox layout (#3583)

Seamus02e2188960ee
diff --git a/js/app/packages/entity/src/composed/list-entity/narrow-inbox-layout.tsx b/js/app/packages/entity/src/composed/list-entity/narrow-inbox-layout.tsx
index 101d3744d4..32eb530bdb 100644
--- a/js/app/packages/entity/src/composed/list-entity/narrow-inbox-layout.tsx
+++ b/js/app/packages/entity/src/composed/list-entity/narrow-inbox-layout.tsx
@@ -33,7 +33,7 @@ export function NarrowInboxLayout(props: LayoutProps) {
isChannelEntity(props.entity) &&
props.entity.channelType === 'direct_message';
- const mostRecentMessageSenderName =
+ const mostRecentMessageSenderName = () =>
isChannelEntity(props.entity) && props.entity.latestMessage?.senderId
? useDisplayNameParts(tryMacroId(props.entity.latestMessage?.senderId))
: undefined;
@@ -140,7 +140,7 @@ export function NarrowInboxLayout(props: LayoutProps) {
{(msg) => (
<ChannelLatestMessageNarrowBody
message={msg()}
- senderFirstName={mostRecentMessageSenderName?.firstName()}
+ senderFirstName={mostRecentMessageSenderName()?.firstName()}
/>
)}
</Match>