Support for receiving View Once Video

This commit is contained in:
Scott Nonnenberg 2019-10-03 12:03:46 -07:00
parent 9229824c24
commit 5c00b89600
9 changed files with 156 additions and 48 deletions

View file

@ -1149,6 +1149,7 @@ export class Message extends React.PureComponent<Props, State> {
public renderTapToViewText() {
const {
attachments,
direction,
i18n,
isTapToViewExpired,
@ -1157,7 +1158,11 @@ export class Message extends React.PureComponent<Props, State> {
const incomingString = isTapToViewExpired
? i18n('Message--tap-to-view-expired')
: i18n('Message--tap-to-view--incoming');
: i18n(
`Message--tap-to-view--incoming${
isVideo(attachments) ? '-video' : ''
}`
);
const outgoingString = i18n('Message--tap-to-view--outgoing');
const isDownloadPending = this.isAttachmentPending();