Skip to content

Commit

Permalink
Message review: show timestamp of last interaction
Browse files Browse the repository at this point in the history
  • Loading branch information
matteosb authored and schuyler1d committed Jun 16, 2020
1 parent 2c08c76 commit 95293e6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/components/IncomingMessageList/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import LoadingIndicator from "../../components/LoadingIndicator";
import DataTables from "material-ui-datatables";
import ConversationPreviewModal from "./ConversationPreviewModal";
import TagChip from "../TagChip";
import moment from "moment";

import { MESSAGE_STATUSES } from "../../components/IncomingMessageFilter";

Expand Down Expand Up @@ -168,6 +169,10 @@ export class IncomingMessageList extends Component {
<b>{lastMessage.isFromContact ? "Contact:" : "Texter:"} </b>
</span>
{lastMessage.text}
<br />
<span style={{ color: "gray", fontSize: "85%" }}>
{moment.utc(lastMessage.createdAt).fromNow()}
</span>
</p>
);
}
Expand Down Expand Up @@ -362,6 +367,7 @@ const queries = {
id
text
isFromContact
createdAt
}
tags {
id
Expand Down

0 comments on commit 95293e6

Please sign in to comment.