When looking at a MemberInfo, clicking on MemberList should close not switch

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
pull/21833/head
Michael Telatynski 2020-01-05 20:31:07 +00:00
parent fb754b795c
commit 4118faa834
2 changed files with 14 additions and 4 deletions

View File

@ -66,9 +66,14 @@ export default class GroupHeaderButtons extends HeaderButtons {
}
_onMembersClicked() {
if (this.state.phase === RIGHT_PANEL_PHASES.GroupMemberInfo) {
// send the active phase to trigger a toggle
this.setPhase(RIGHT_PANEL_PHASES.GroupMemberInfo);
} else {
// This toggles for us, if needed
this.setPhase(RIGHT_PANEL_PHASES.GroupMemberList);
}
}
_onRoomsClicked() {
// This toggles for us, if needed

View File

@ -56,9 +56,14 @@ export default class RoomHeaderButtons extends HeaderButtons {
}
_onMembersClicked() {
if (this.state.phase === RIGHT_PANEL_PHASES.RoomMemberInfo) {
// send the active phase to trigger a toggle
this.setPhase(RIGHT_PANEL_PHASES.RoomMemberInfo);
} else {
// This toggles for us, if needed
this.setPhase(RIGHT_PANEL_PHASES.RoomMemberList);
}
}
_onFilesClicked() {
// This toggles for us, if needed