Respond to PR feedback
- makeThumbnail -> makeImageThumbnail - duplicate 'display: flex' - remove no-longer-applicable comment
This commit is contained in:
parent
ac0b50d20f
commit
27a30b3267
3 changed files with 5 additions and 8 deletions
|
@ -631,7 +631,7 @@
|
|||
const objectUrl = this.makeObjectUrl(data, contentType);
|
||||
|
||||
const thumbnail = Signal.Util.GoogleChrome.isImageTypeSupported(contentType)
|
||||
? await Whisper.FileInputView.makeThumbnail(128, objectUrl)
|
||||
? await Whisper.FileInputView.makeImageThumbnail(128, objectUrl)
|
||||
: await Whisper.FileInputView.makeVideoThumbnail(128, objectUrl);
|
||||
|
||||
URL.revokeObjectURL(objectUrl);
|
||||
|
@ -1163,8 +1163,6 @@
|
|||
return true;
|
||||
}
|
||||
|
||||
// Maybe in the future we could try to pull the thumbnail from a video ourselves,
|
||||
// but for now we will rely on incoming thumbnails only.
|
||||
if (!Signal.Util.GoogleChrome.isImageTypeSupported(first.contentType) &&
|
||||
!Signal.Util.GoogleChrome.isVideoTypeSupported(first.contentType)) {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue