Skip to content
This repository was archived by the owner on Oct 11, 2022. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/components/icons/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/views/dashboard/components/inboxThread.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ const MessageCount = props => {
const now = new Date().getTime() / 1000;
const createdAtTime = new Date(createdAt).getTime() / 1000;
const lastActiveTime = lastActive && new Date(lastActive).getTime() / 1000;
const createdYesterday = now - createdAtTime > 86400;
const createdMoreThanOneDayAgo = now - createdAtTime > 86400;
const newMessagesSinceLastWeek =
lastActiveTime && now - lastActiveTime > 86400 * 7;
const newMessagesSinceLastViewed =
currentUserLastSeen && lastActive && currentUserLastSeen < lastActive;

if (currentUserLastSeen && !lastActive && !createdYesterday) {
if (!currentUserLastSeen && !lastActive && !createdMoreThanOneDayAgo) {
return <NewThreadPill active={active}>New thread!</NewThreadPill>;
}

Expand Down
2 changes: 1 addition & 1 deletion src/views/dashboard/style.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@ const StatusPill = styled(CountWrapper)`
background: ${props =>
props.active ? props.theme.text.reverse : props.theme.brand.alt};
border-radius: 20px;
padding: 0 12px;
padding: 4px 12px;
font-size: 11px;
text-transform: uppercase;
font-weight: 700;
Expand Down