You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-07 10:46:24 +03:00
Disable avatars in desktop notifs when in LB mode
This commit is contained in:
@@ -85,7 +85,11 @@ const Notifier = {
|
|||||||
msg = '';
|
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);
|
const notif = plaf.displayNotification(title, msg, avatarUrl, room);
|
||||||
|
|
||||||
// if displayNotification returns non-null, the platform supports
|
// if displayNotification returns non-null, the platform supports
|
||||||
|
|||||||
Reference in New Issue
Block a user