Page MenuHomePhabricator

D3098.id.diff
No OneTemporary

D3098.id.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
@@ -4,9 +4,7 @@
import * as React from 'react';
import type { SidebarInfo } from 'lib/types/thread-types';
-import { shortAbsoluteDate } from 'lib/utils/date-utils';
-import { useSelector } from '../redux/redux-utils';
import { useOnClickThread } from '../selectors/nav-selectors';
import SWMansionIcon from '../SWMansionIcon.react';
import css from './chat-thread-list.css';
@@ -15,16 +13,12 @@
+sidebarInfo: SidebarInfo,
};
function SidebarItem(props: Props): React.Node {
- const { threadInfo, lastUpdatedTime } = props.sidebarInfo;
+ const { threadInfo } = props.sidebarInfo;
const threadID = threadInfo.id;
-
const onClick = useOnClickThread(threadID);
-
- const timeZone = useSelector(state => state.timeZone);
- const lastActivity = shortAbsoluteDate(lastUpdatedTime, timeZone);
-
const { unread } = threadInfo.currentUser;
const unreadCls = classNames(css.sidebarTitle, { [css.unread]: unread });
+
return (
<>
<SWMansionIcon icon="right-angle-arrow" size={28} />
@@ -32,14 +26,6 @@
<a className={css.threadButtonSidebar} onClick={onClick}>
<div className={css.threadRow}>
<div className={unreadCls}>{threadInfo.uiName}</div>
- <div
- className={classNames([
- css.sidebarLastActivity,
- unread ? css.black : css.dark,
- ])}
- >
- {lastActivity}
- </div>
</div>
</a>
</>

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 5, 2:46 AM (9 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2615025
Default Alt Text
D3098.id.diff (1 KB)

Event Timeline