File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
src/components/structures Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ import AccessibleButton from 'matrix-react-sdk/lib/components/views/elements/Acc
2929import { showGroupInviteDialog , showGroupAddRoomDialog } from 'matrix-react-sdk/lib/GroupAddressPicker' ;
3030import GroupStoreCache from 'matrix-react-sdk/lib/stores/GroupStoreCache' ;
3131
32+ import { formatCount } from 'matrix-react-sdk/lib/utils/FormattingUtils' ;
33+
3234class HeaderButton extends React . Component {
3335 constructor ( ) {
3436 super ( ) ;
@@ -264,7 +266,7 @@ module.exports = React.createClass({
264266 const room = cli . getRoom ( this . props . roomId ) ;
265267 let userIsInRoom ;
266268 if ( room ) {
267- membersBadge = room . getJoinedMembers ( ) . length ;
269+ membersBadge = formatCount ( room . getJoinedMembers ( ) . length ) ;
268270 userIsInRoom = room . hasMembershipState (
269271 this . context . matrixClient . credentials . userId , 'join' ,
270272 ) ;
You can’t perform that action at this time.
0 commit comments