File tree Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Expand file tree Collapse file tree 1 file changed +15
-3
lines changed Original file line number Diff line number Diff line change @@ -100,12 +100,24 @@ export const ChannelPreviewMessenger = themed(
100100 renderAvatar = ( otherMembers ) => {
101101 const { channel } = this . props ;
102102 if ( channel . data . image )
103- return < Avatar image = { channel . data . image } size = { 40 } /> ;
103+ return (
104+ < Avatar
105+ image = { channel . data . image }
106+ size = { 40 }
107+ name = { channel . data . name }
108+ />
109+ ) ;
104110
105111 if ( otherMembers . length === 1 )
106- return < Avatar image = { otherMembers [ 0 ] . user . image } size = { 40 } /> ;
112+ return (
113+ < Avatar
114+ image = { otherMembers [ 0 ] . user . image }
115+ size = { 40 }
116+ name = { channel . data . name }
117+ />
118+ ) ;
107119
108- return < Avatar size = { 40 } /> ;
120+ return < Avatar size = { 40 } name = { channel . data . name } /> ;
109121 } ;
110122
111123 render ( ) {
You can’t perform that action at this time.
0 commit comments