Page MenuHomePhabricator

D3538.id10896.diff
No OneTemporary

D3538.id10896.diff

diff --git a/web/chat/sidebar-item.react.js b/web/chat/sidebar-item.react.js
--- a/web/chat/sidebar-item.react.js
+++ b/web/chat/sidebar-item.react.js
@@ -13,10 +13,15 @@
+sidebarInfo: SidebarInfo,
};
function SidebarItem(props: Props): React.Node {
- const { threadInfo } = props.sidebarInfo;
+ const {
+ sidebarInfo: { threadInfo },
+ } = props;
+ const {
+ currentUser: { unread },
+ } = threadInfo;
+
const onClick = useOnClickThread(threadInfo);
- const { unread } = threadInfo.currentUser;
const unreadCls = classNames(css.sidebarTitle, { [css.unread]: unread });
return (

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 28, 5:11 PM (21 h, 37 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2594187
Default Alt Text
D3538.id10896.diff (610 B)

Event Timeline