From beb77799f6a19486e1621667096ce587cbe39018 Mon Sep 17 00:00:00 2001 From: Michael Telatynski <7t3chguy@gmail.com> Date: Wed, 2 Sep 2020 17:26:23 +0100 Subject: [PATCH] Respect user preference for whether pills should have an avatar or not --- src/components/views/elements/ReplyThread.js | 10 ++++++++-- src/components/views/settings/BridgeTile.js | 5 +++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/src/components/views/elements/ReplyThread.js b/src/components/views/elements/ReplyThread.js index 409bf9e01f..d9fd456a0e 100644 --- a/src/components/views/elements/ReplyThread.js +++ b/src/components/views/elements/ReplyThread.js @@ -331,8 +331,14 @@ export default class ReplyThread extends React.Component { { _t('In reply to ', {}, { 'a': (sub) => { sub }, - 'pill': , + 'pill': ( + + ), }) } ; diff --git a/src/components/views/settings/BridgeTile.js b/src/components/views/settings/BridgeTile.js index 5b74e44c9e..e9c58518e4 100644 --- a/src/components/views/settings/BridgeTile.js +++ b/src/components/views/settings/BridgeTile.js @@ -24,6 +24,7 @@ import {makeUserPermalink} from "../../../utils/permalinks/Permalinks"; import BaseAvatar from "../avatars/BaseAvatar"; import AccessibleButton from "../elements/AccessibleButton"; import {replaceableComponent} from "../../../utils/replaceableComponent"; +import SettingsStore from "../../../settings/SettingsStore"; @replaceableComponent("views.settings.BridgeTile") export default class BridgeTile extends React.PureComponent { @@ -56,7 +57,7 @@ export default class BridgeTile extends React.PureComponent { type={Pill.TYPE_USER_MENTION} room={this.props.room} url={makeUserPermalink(content.creator)} - shouldShowPillAvatar={true} + shouldShowPillAvatar={SettingsStore.getValue("Pill.shouldShowPillAvatar")} />, }); } @@ -66,7 +67,7 @@ export default class BridgeTile extends React.PureComponent { type={Pill.TYPE_USER_MENTION} room={this.props.room} url={makeUserPermalink(this.props.ev.getSender())} - shouldShowPillAvatar={true} + shouldShowPillAvatar={SettingsStore.getValue("Pill.shouldShowPillAvatar")} />, });