Rename thumbnail/image option to more general 'media'

This commit is contained in:
Max Leiter 2017-12-12 11:27:15 -08:00 committed by Jérémie Astori
parent ccd37aba8f
commit fdd8ef3e6a
No known key found for this signature in database
GPG key ID: B9A4F245CD67BDE8
2 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@ userOptions = null;
module.exports = options;
module.exports.shouldOpenMessagePreview = function(type) {
return (options.links && type === "link") || (options.media && (type === "image" || type === "audio"));
return type === "link" ? options.links : options.media;
};
module.exports.initialize = () => {

View file

@ -74,8 +74,8 @@
</div>
<div class="col-sm-6">
<label class="opt">
<input type="checkbox" name="thumbnails">
Auto-expand images
<input type="checkbox" name="media">
Auto-expand media
</label>
</div>
<div class="col-sm-6">