diff --git a/js/models/messages.js b/js/models/messages.js index 8f2283293..685d594f8 100644 --- a/js/models/messages.js +++ b/js/models/messages.js @@ -483,6 +483,7 @@ return { text: this.createNonBreakingLastSeparator(this.get('body')), + timestamp: this.get('sent_at'), status: this.getMessagePropStatus(), direction, friendStatus, diff --git a/ts/components/conversation/FriendRequest.md b/ts/components/conversation/FriendRequest.md index fccc5a6d1..bef992b2e 100644 --- a/ts/components/conversation/FriendRequest.md +++ b/ts/components/conversation/FriendRequest.md @@ -5,6 +5,7 @@ | Name | Values | | -------------------- | -------------------------------------------- | | text | string | +| timestamp | number | | direction | 'outgoing' \| 'incoming | | status | 'sending' \| 'sent' \| 'read' \| 'delivered' | | friendStatus | 'pending' \| 'accepted' \| 'declined' | @@ -21,6 +22,7 @@
  • void; onDecline: () => void; onDeleteConversation: () => void; @@ -142,13 +144,23 @@ export class FriendRequest extends React.Component { // Renders 'sending', 'read' icons public renderStatusIndicator() { - const { direction, status } = this.props; - if (direction !== 'outgoing' || status === 'error') { + const { direction, status, i18n, text, timestamp } = this.props; + if (status === 'error') { return null; } + const withImageNoCaption = Boolean(!text); + return (
    +