Back button should send you to member info

Signed-off-by: Šimon Brandner <simon.bra.ag@gmail.com>
pull/21833/head
Šimon Brandner 2021-01-30 08:54:08 +01:00
parent 4cf03e4c10
commit 1360f551ce
No known key found for this signature in database
GPG Key ID: 9760693FDD98A790
1 changed files with 6 additions and 1 deletions

View File

@ -1560,9 +1560,13 @@ const UserInfo: React.FC<Props> = ({
break; break;
} }
let refireParams;
let previousPhase: RightPanelPhases; let previousPhase: RightPanelPhases;
// We have no previousPhase for when viewing a UserInfo from a Group or without a Room at this time // We have no previousPhase for when viewing a UserInfo from a Group or without a Room at this time
if (room) { if (room && phase === RightPanelPhases.EncryptionPanel) {
previousPhase = RightPanelPhases.RoomMemberInfo;
refireParams = {member: member};
} else if (room) {
previousPhase = RightPanelPhases.RoomMemberList; previousPhase = RightPanelPhases.RoomMemberList;
} }
@ -1581,6 +1585,7 @@ const UserInfo: React.FC<Props> = ({
onClose={onClose} onClose={onClose}
closeLabel={closeLabel} closeLabel={closeLabel}
previousPhase={previousPhase} previousPhase={previousPhase}
refireParams={refireParams}
> >
{ content } { content }
</BaseCard>; </BaseCard>;