Page MenuHomePhabricator

D6594.id22007.diff
No OneTemporary

D6594.id22007.diff

diff --git a/native/chat/chat-thread-list-item.react.js b/native/chat/chat-thread-list-item.react.js
--- a/native/chat/chat-thread-list-item.react.js
+++ b/native/chat/chat-thread-list-item.react.js
@@ -7,6 +7,7 @@
import type { ThreadInfo } from 'lib/types/thread-types';
import type { UserInfo } from 'lib/types/user-types';
import { shortAbsoluteDate } from 'lib/utils/date-utils';
+import { useResolvedThreadInfo } from 'lib/utils/entity-helpers';
import Button from '../components/button.react';
import ColorSplotch from '../components/color-splotch.react';
@@ -114,6 +115,8 @@
styles.unreadLastActivity,
]);
+ const resolvedThreadInfo = useResolvedThreadInfo(data.threadInfo);
+
return (
<>
<SwipeableThread
@@ -141,7 +144,7 @@
<ThreadAncestorsLabel threadInfo={data.threadInfo} />
<View style={styles.row}>
<SingleLine style={threadNameStyle}>
- {data.threadInfo.uiName}
+ {resolvedThreadInfo.uiName}
</SingleLine>
</View>
<View style={styles.row}>

File Metadata

Mime Type
text/plain
Expires
Sat, Dec 21, 3:10 AM (16 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2683146
Default Alt Text
D6594.id22007.diff (1 KB)

Event Timeline