From fdd8ef3e6a1678d180113f899f33a23b421dc48f Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Tue, 12 Dec 2017 11:27:15 -0800 Subject: [PATCH] Rename thumbnail/image option to more general 'media' --- client/js/options.js | 2 +- client/views/windows/settings.tpl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/js/options.js b/client/js/options.js index 609d0ede..49f56b58 100644 --- a/client/js/options.js +++ b/client/js/options.js @@ -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 = () => { diff --git a/client/views/windows/settings.tpl b/client/views/windows/settings.tpl index f22a3bdf..41c0eeb9 100644 --- a/client/views/windows/settings.tpl +++ b/client/views/windows/settings.tpl @@ -74,8 +74,8 @@