mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
commit
c3a0c26610
@ -29,6 +29,8 @@ import AccessibleButton from 'matrix-react-sdk/lib/components/views/elements/Acc
|
|||||||
import { showGroupInviteDialog, showGroupAddRoomDialog } from 'matrix-react-sdk/lib/GroupAddressPicker';
|
import { showGroupInviteDialog, showGroupAddRoomDialog } from 'matrix-react-sdk/lib/GroupAddressPicker';
|
||||||
import GroupStoreCache from 'matrix-react-sdk/lib/stores/GroupStoreCache';
|
import GroupStoreCache from 'matrix-react-sdk/lib/stores/GroupStoreCache';
|
||||||
|
|
||||||
|
import { formatCount } from 'matrix-react-sdk/lib/utils/FormattingUtils';
|
||||||
|
|
||||||
class HeaderButton extends React.Component {
|
class HeaderButton extends React.Component {
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
@ -264,7 +266,7 @@ module.exports = React.createClass({
|
|||||||
const room = cli.getRoom(this.props.roomId);
|
const room = cli.getRoom(this.props.roomId);
|
||||||
let userIsInRoom;
|
let userIsInRoom;
|
||||||
if (room) {
|
if (room) {
|
||||||
membersBadge = room.getJoinedMembers().length;
|
membersBadge = formatCount(room.getJoinedMembers().length);
|
||||||
userIsInRoom = room.hasMembershipState(
|
userIsInRoom = room.hasMembershipState(
|
||||||
this.context.matrixClient.credentials.userId, 'join',
|
this.context.matrixClient.credentials.userId, 'join',
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user