File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -242,9 +242,11 @@ const Chat = ({
242242 renderCustomView = { ( props : BubbleProps < ICustomMessage > ) => (
243243 < CustomUsernameView { ...props } activeRoom = { activeRoom } />
244244 ) }
245- renderAvatar = { ( props ) => (
246- < CustomAvatar { ...props } activeRoom = { activeRoom } />
247- ) }
245+ renderAvatar = { ( props ) =>
246+ activeRoom ?. groupAvatar && (
247+ < CustomAvatar { ...props } activeRoom = { activeRoom } />
248+ )
249+ }
248250 renderAvatarOnTop = { true }
249251 renderChatFooter = { renderChatFooter }
250252 renderSystemMessage = { CustomSystemMessage }
Original file line number Diff line number Diff line change @@ -11,9 +11,7 @@ interface CustomAvatarProps extends AvatarProps<IMessage> {
1111const CustomAvatar = ( props : CustomAvatarProps ) => {
1212 const theme = useTheme ( ) ;
1313 // render user avatar just for community chat
14- if ( props . activeRoom ?. groupAvatar ) {
15- return < Avatar { ...props } imageStyle = { styles ( theme ) . avatarImageStle } /> ;
16- }
14+ return < Avatar { ...props } imageStyle = { styles ( theme ) . avatarImageStle } /> ;
1715} ;
1816
1917export default CustomAvatar ;
You can’t perform that action at this time.
0 commit comments