Merge pull request #4558 from matrix-org/dbkr/fix_member_panel_hide

Fix right panel hiding when viewing room member
This commit is contained in:
David Baker 2020-05-07 12:03:34 +01:00 committed by GitHub
commit 0fd06300be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -139,7 +139,7 @@ export default class RightPanelStore extends Store {
let targetPhase = payload.phase; let targetPhase = payload.phase;
let refireParams = payload.refireParams; let refireParams = payload.refireParams;
// redirect to EncryptionPanel if there is an ongoing verification request // redirect to EncryptionPanel if there is an ongoing verification request
if (targetPhase === RIGHT_PANEL_PHASES.RoomMemberInfo) { if (targetPhase === RIGHT_PANEL_PHASES.RoomMemberInfo && payload.refireParams) {
const {member} = payload.refireParams; const {member} = payload.refireParams;
const pendingRequest = pendingVerificationRequestForUser(member); const pendingRequest = pendingVerificationRequestForUser(member);
if (pendingRequest) { if (pendingRequest) {