From d6312606e6e6afd362549670e3b9c98ad9777b21 Mon Sep 17 00:00:00 2001 From: Will Hunt Date: Mon, 30 Nov 2020 12:48:10 +0000 Subject: [PATCH] Use correct key for avatar --- src/components/views/settings/BridgeTile.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/views/settings/BridgeTile.tsx b/src/components/views/settings/BridgeTile.tsx index 3fb184d828..f47d47cb40 100644 --- a/src/components/views/settings/BridgeTile.tsx +++ b/src/components/views/settings/BridgeTile.tsx @@ -66,7 +66,6 @@ export default class BridgeTile extends React.PureComponent { room: PropTypes.object.isRequired, } - render() { const content: IBridgeStateEvent = this.props.ev.getContent(); // Validate @@ -77,7 +76,6 @@ export default class BridgeTile extends React.PureComponent { const { channel, network, protocol } = content; const protocolName = protocol.displayname || protocol.id; const channelName = channel.displayname || channel.id; - const networkName = network ? network.displayname || network.id : protocolName; let creator = null; if (content.creator) { @@ -102,10 +100,10 @@ export default class BridgeTile extends React.PureComponent { let networkIcon; - if (protocol.avatar) { + if (protocol.avatar_url) { const avatarUrl = getHttpUriForMxc( MatrixClientPeg.get().getHomeserverUrl(), - protocol.avatar, 64, 64, "crop", + protocol.avatar_url, 64, 64, "crop", ); networkIcon =