You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-11-16 06:42:26 +03:00
Apply suggestions from code review
Co-Authored-By: Travis Ralston <travpc@gmail.com>
This commit is contained in:
committed by
GitHub
parent
5a5a0d2233
commit
0f61aa57ff
@@ -23,7 +23,6 @@ import { _t } from '../../../languageHandler';
|
|||||||
import HeaderButton from './HeaderButton';
|
import HeaderButton from './HeaderButton';
|
||||||
import HeaderButtons, {HEADER_KIND_GROUP} from './HeaderButtons';
|
import HeaderButtons, {HEADER_KIND_GROUP} from './HeaderButtons';
|
||||||
import {RIGHT_PANEL_PHASES} from "../../../stores/RightPanelStorePhases";
|
import {RIGHT_PANEL_PHASES} from "../../../stores/RightPanelStorePhases";
|
||||||
import RightPanelStore from "../../../stores/RightPanelStore";
|
|
||||||
|
|
||||||
const GROUP_PHASES = [
|
const GROUP_PHASES = [
|
||||||
RIGHT_PANEL_PHASES.GroupMemberInfo,
|
RIGHT_PANEL_PHASES.GroupMemberInfo,
|
||||||
@@ -69,7 +68,7 @@ export default class GroupHeaderButtons extends HeaderButtons {
|
|||||||
_onMembersClicked() {
|
_onMembersClicked() {
|
||||||
if (this.state.phase === RIGHT_PANEL_PHASES.GroupMemberInfo) {
|
if (this.state.phase === RIGHT_PANEL_PHASES.GroupMemberInfo) {
|
||||||
// send the active phase to trigger a toggle
|
// send the active phase to trigger a toggle
|
||||||
this.setPhase(RIGHT_PANEL_PHASES.GroupMemberInfo, RightPanelStore.getSharedInstance().roomPanelPhaseParams);
|
this.setPhase(RIGHT_PANEL_PHASES.GroupMemberInfo);
|
||||||
} else {
|
} else {
|
||||||
// This toggles for us, if needed
|
// This toggles for us, if needed
|
||||||
this.setPhase(RIGHT_PANEL_PHASES.GroupMemberList);
|
this.setPhase(RIGHT_PANEL_PHASES.GroupMemberList);
|
||||||
|
|||||||
Reference in New Issue
Block a user