From af86cdfe9a87780d0475d7c968b0901da47d34c6 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Thu, 30 May 2019 20:02:25 -0600 Subject: [PATCH] Disable avatars in desktop notifs when in LB mode --- src/Notifier.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/Notifier.js b/src/Notifier.js index 6a4f9827f7..2322311769 100644 --- a/src/Notifier.js +++ b/src/Notifier.js @@ -85,7 +85,11 @@ const Notifier = { msg = ''; } - const avatarUrl = ev.sender ? Avatar.avatarUrlForMember(ev.sender, 40, 40, 'crop') : null; + let avatarUrl = null; + if (ev.sender && !SettingsStore.getValue("lowBandwidth")) { + avatarUrl = Avatar.avatarUrlForMember(ev.sender, 40, 40, 'crop'); + } + const notif = plaf.displayNotification(title, msg, avatarUrl, room); // if displayNotification returns non-null, the platform supports