mirror of
https://github.com/vector-im/element-web.git
synced 2024-11-15 20:54:59 +08:00
Fix space member list opening with back button (#7773)
This commit is contained in:
parent
8103e606c4
commit
871032e1bc
@ -372,12 +372,14 @@ export default class RightPanelStore extends ReadyWatchingStore {
|
||||
SettingsStore.getValue("feature_right_panel_default_open") &&
|
||||
!this.byRoom[this.viewedRoomId]?.isOpen
|
||||
) {
|
||||
const history = [{ phase: RightPanelPhases.RoomMemberList }];
|
||||
const room = this.viewedRoomId && this.mxClient?.getRoom(this.viewedRoomId);
|
||||
if (!room?.isSpaceRoom()) {
|
||||
history.unshift({ phase: RightPanelPhases.RoomSummary });
|
||||
}
|
||||
this.byRoom[this.viewedRoomId] = {
|
||||
isOpen: true,
|
||||
history: [
|
||||
{ phase: RightPanelPhases.RoomSummary },
|
||||
{ phase: RightPanelPhases.RoomMemberList },
|
||||
],
|
||||
history,
|
||||
};
|
||||
}
|
||||
this.emitAndUpdateSettings();
|
||||
|
Loading…
Reference in New Issue
Block a user