From bf32f2cc290b4340d847e8c39f9020ff5eae6bec Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Mon, 21 Aug 2023 17:12:06 +0530 Subject: [PATCH] Open invite panel from memberlist panel --- src/domain/session/rightpanel/MemberListViewModel.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/domain/session/rightpanel/MemberListViewModel.js b/src/domain/session/rightpanel/MemberListViewModel.js index 1c878c85..b20ac929 100644 --- a/src/domain/session/rightpanel/MemberListViewModel.js +++ b/src/domain/session/rightpanel/MemberListViewModel.js @@ -54,4 +54,11 @@ export class MemberListViewModel extends ViewModel { return members.mapValues(mapper, updater); } + openInvitePanel() { + let path = this.navigation.path.until("room"); + path = path.with(this.navigation.segment("right-panel", true)); + path = path.with(this.navigation.segment("invite", true)); + this.navigation.applyPath(path); + } + }