mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-26 21:28:40 +00:00
Allow empty group avatar file input
This commit is contained in:
@@ -144,7 +144,7 @@
|
||||
|
||||
getFile: function(file) {
|
||||
file = file || this.$input.prop('files')[0];
|
||||
if (file === undefined) { throw 'No file'; }
|
||||
if (file === undefined) { return Promise.resolve(); }
|
||||
return this.autoScale(file).then(this.readFile);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user