mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-29 12:53:35 +01:00
Replace loadImage with autoOrientImage
This commit is contained in:
@@ -134,14 +134,7 @@
|
||||
case 'audio': this.addThumb('images/audio.svg'); break;
|
||||
case 'video': this.addThumb('images/video.svg'); break;
|
||||
case 'image':
|
||||
window.loadImage(
|
||||
file,
|
||||
autoOrientedCanvas => {
|
||||
const objectUrl = autoOrientedCanvas.toDataURL();
|
||||
this.addThumb(objectUrl);
|
||||
},
|
||||
{orientation: true},
|
||||
);
|
||||
window.autoOrientImage(file).then(this.addThumb.bind(this));
|
||||
break;
|
||||
default:
|
||||
this.addThumb('images/file.svg'); break;
|
||||
|
||||
Reference in New Issue
Block a user