Respect user preference for whether pills should have an avatar or not
This commit is contained in:
parent
129b9459a3
commit
beb77799f6
2 changed files with 11 additions and 4 deletions
|
@ -331,8 +331,14 @@ export default class ReplyThread extends React.Component {
|
||||||
{
|
{
|
||||||
_t('<a>In reply to</a> <pill>', {}, {
|
_t('<a>In reply to</a> <pill>', {}, {
|
||||||
'a': (sub) => <a onClick={this.onQuoteClick} className="mx_ReplyThread_show">{ sub }</a>,
|
'a': (sub) => <a onClick={this.onQuoteClick} className="mx_ReplyThread_show">{ sub }</a>,
|
||||||
'pill': <Pill type={Pill.TYPE_USER_MENTION} room={room}
|
'pill': (
|
||||||
url={makeUserPermalink(ev.getSender())} shouldShowPillAvatar={true} />,
|
<Pill
|
||||||
|
type={Pill.TYPE_USER_MENTION}
|
||||||
|
room={room}
|
||||||
|
url={makeUserPermalink(ev.getSender())}
|
||||||
|
shouldShowPillAvatar={SettingsStore.getValue("Pill.shouldShowPillAvatar")}
|
||||||
|
/>
|
||||||
|
),
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
</blockquote>;
|
</blockquote>;
|
||||||
|
|
|
@ -24,6 +24,7 @@ import {makeUserPermalink} from "../../../utils/permalinks/Permalinks";
|
||||||
import BaseAvatar from "../avatars/BaseAvatar";
|
import BaseAvatar from "../avatars/BaseAvatar";
|
||||||
import AccessibleButton from "../elements/AccessibleButton";
|
import AccessibleButton from "../elements/AccessibleButton";
|
||||||
import {replaceableComponent} from "../../../utils/replaceableComponent";
|
import {replaceableComponent} from "../../../utils/replaceableComponent";
|
||||||
|
import SettingsStore from "../../../settings/SettingsStore";
|
||||||
|
|
||||||
@replaceableComponent("views.settings.BridgeTile")
|
@replaceableComponent("views.settings.BridgeTile")
|
||||||
export default class BridgeTile extends React.PureComponent {
|
export default class BridgeTile extends React.PureComponent {
|
||||||
|
@ -56,7 +57,7 @@ export default class BridgeTile extends React.PureComponent {
|
||||||
type={Pill.TYPE_USER_MENTION}
|
type={Pill.TYPE_USER_MENTION}
|
||||||
room={this.props.room}
|
room={this.props.room}
|
||||||
url={makeUserPermalink(content.creator)}
|
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}
|
type={Pill.TYPE_USER_MENTION}
|
||||||
room={this.props.room}
|
room={this.props.room}
|
||||||
url={makeUserPermalink(this.props.ev.getSender())}
|
url={makeUserPermalink(this.props.ev.getSender())}
|
||||||
shouldShowPillAvatar={true}
|
shouldShowPillAvatar={SettingsStore.getValue("Pill.shouldShowPillAvatar")}
|
||||||
/>,
|
/>,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue