From 0e0c48637181df5ed231dfda98aadfd803f3bf08 Mon Sep 17 00:00:00 2001 From: Guilherme Gazzo Date: Wed, 4 Dec 2019 16:56:32 -0300 Subject: [PATCH] [FIX] Auto load image user preference (#15895) --- app/ui-utils/client/lib/messageContext.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/ui-utils/client/lib/messageContext.js b/app/ui-utils/client/lib/messageContext.js index 34376ff016c1..bd05b173d2a6 100644 --- a/app/ui-utils/client/lib/messageContext.js +++ b/app/ui-utils/client/lib/messageContext.js @@ -7,7 +7,7 @@ import { settings } from '../../../settings/client'; import { getUserPreference } from '../../../utils/client'; import { AutoTranslate } from '../../../autotranslate/client'; -const fields = { name: 1, username: 1, 'settings.autoImageLoad': 1, 'settings.saveMobileBandwidth': 1, 'settings.collapseMediaByDefault': 1, 'settings.hideRoles': 1 }; +const fields = { name: 1, username: 1, 'settings.preferences.autoImageLoad': 1, 'settings.preferences.saveMobileBandwidth': 1, 'settings.preferences.collapseMediaByDefault': 1, 'settings.preferences.hideRoles': 1 }; export function messageContext({ rid } = Template.instance()) { const uid = Meteor.userId(); @@ -30,7 +30,7 @@ export function messageContext({ rid } = Template.instance()) { }), settings: { translateLanguage: AutoTranslate.getLanguage(rid), - autoImageLoad: getUserPreference(user, 'saveMobileBandwidth'), + autoImageLoad: getUserPreference(user, 'autoImageLoad'), saveMobileBandwidth: Meteor.Device.isPhone() && getUserPreference(user, 'saveMobileBandwidth'), collapseMediaByDefault: getUserPreference(user, 'collapseMediaByDefault'), showreply: true,