Use correct key for avatar
This commit is contained in:
parent
e448da0bcd
commit
d6312606e6
1 changed files with 2 additions and 4 deletions
|
@ -66,7 +66,6 @@ export default class BridgeTile extends React.PureComponent<IProps> {
|
||||||
room: PropTypes.object.isRequired,
|
room: PropTypes.object.isRequired,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const content: IBridgeStateEvent = this.props.ev.getContent();
|
const content: IBridgeStateEvent = this.props.ev.getContent();
|
||||||
// Validate
|
// Validate
|
||||||
|
@ -77,7 +76,6 @@ export default class BridgeTile extends React.PureComponent<IProps> {
|
||||||
const { channel, network, protocol } = content;
|
const { channel, network, protocol } = content;
|
||||||
const protocolName = protocol.displayname || protocol.id;
|
const protocolName = protocol.displayname || protocol.id;
|
||||||
const channelName = channel.displayname || channel.id;
|
const channelName = channel.displayname || channel.id;
|
||||||
const networkName = network ? network.displayname || network.id : protocolName;
|
|
||||||
|
|
||||||
let creator = null;
|
let creator = null;
|
||||||
if (content.creator) {
|
if (content.creator) {
|
||||||
|
@ -102,10 +100,10 @@ export default class BridgeTile extends React.PureComponent<IProps> {
|
||||||
|
|
||||||
let networkIcon;
|
let networkIcon;
|
||||||
|
|
||||||
if (protocol.avatar) {
|
if (protocol.avatar_url) {
|
||||||
const avatarUrl = getHttpUriForMxc(
|
const avatarUrl = getHttpUriForMxc(
|
||||||
MatrixClientPeg.get().getHomeserverUrl(),
|
MatrixClientPeg.get().getHomeserverUrl(),
|
||||||
protocol.avatar, 64, 64, "crop",
|
protocol.avatar_url, 64, 64, "crop",
|
||||||
);
|
);
|
||||||
|
|
||||||
networkIcon = <BaseAvatar className="protocol-icon"
|
networkIcon = <BaseAvatar className="protocol-icon"
|
||||||
|
|
Loading…
Reference in a new issue