From d7e3e70430f18800a0cbfe0e43f66c3326246721 Mon Sep 17 00:00:00 2001 From: unknown Date: Tue, 17 Aug 2021 17:04:21 +0530 Subject: [PATCH] Fixed #59 : Consistant channel avatar bg --- src/app/molecules/channel-intro/ChannelIntro.jsx | 5 +++-- src/app/organisms/channel/ChannelViewContent.jsx | 1 + src/app/organisms/channel/ChannelViewHeader.jsx | 2 +- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/app/molecules/channel-intro/ChannelIntro.jsx b/src/app/molecules/channel-intro/ChannelIntro.jsx index 84c0c147..362dc147 100644 --- a/src/app/molecules/channel-intro/ChannelIntro.jsx +++ b/src/app/molecules/channel-intro/ChannelIntro.jsx @@ -13,11 +13,11 @@ function linkifyContent(content) { } function ChannelIntro({ - avatarSrc, name, heading, desc, time, + roomId, avatarSrc, name, heading, desc, time, }) { return (
- +
{heading} {linkifyContent(desc)} @@ -33,6 +33,7 @@ ChannelIntro.defaultProps = { }; ChannelIntro.propTypes = { + roomId: PropTypes.string.isRequired, avatarSrc: PropTypes.oneOfType([ PropTypes.string, PropTypes.bool, diff --git a/src/app/organisms/channel/ChannelViewContent.jsx b/src/app/organisms/channel/ChannelViewContent.jsx index b7452095..e4eceb69 100644 --- a/src/app/organisms/channel/ChannelViewContent.jsx +++ b/src/app/organisms/channel/ChannelViewContent.jsx @@ -127,6 +127,7 @@ function genChannelIntro(mEvent, roomTimeline) { return ( - + {roomName} { typeof roomTopic !== 'undefined' &&

{roomTopic}

}