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, Dec 26, 5:30 AM (4 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2703951
Default Alt Text
D3538.id10896.diff (610 B)

Event Timeline