Remove feature_right_panel_default_open (#11359)
* Remove feature_right_panel_default_open * i18npull/28788/head^2
							parent
							
								
									93b66501f5
								
							
						
					
					
						commit
						aab0c9a9e1
					
				|  | @ -983,8 +983,6 @@ | |||
|     "Show current profile picture and name for users in message history": "Show current profile picture and name for users in message history", | ||||
|     "Show HTML representation of room topics": "Show HTML representation of room topics", | ||||
|     "Show info about bridges in room settings": "Show info about bridges in room settings", | ||||
|     "Right panel stays open": "Right panel stays open", | ||||
|     "Defaults to room member list.": "Defaults to room member list.", | ||||
|     "Jump to date (adds /jumptodate and jump to date headers)": "Jump to date (adds /jumptodate and jump to date headers)", | ||||
|     "Requires your server to support MSC3030": "Requires your server to support MSC3030", | ||||
|     "Send read receipts": "Send read receipts", | ||||
|  |  | |||
|  | @ -363,14 +363,6 @@ export const SETTINGS: { [setting: string]: ISetting } = { | |||
|         displayName: _td("Show info about bridges in room settings"), | ||||
|         default: false, | ||||
|     }, | ||||
|     "feature_right_panel_default_open": { | ||||
|         isFeature: true, | ||||
|         labsGroup: LabGroup.Rooms, | ||||
|         supportedLevels: LEVELS_FEATURE, | ||||
|         displayName: _td("Right panel stays open"), | ||||
|         description: _td("Defaults to room member list."), | ||||
|         default: false, | ||||
|     }, | ||||
|     "feature_jump_to_date": { | ||||
|         isFeature: true, | ||||
|         labsGroup: LabGroup.Messaging, | ||||
|  |  | |||
|  | @ -377,23 +377,6 @@ export default class RightPanelStore extends ReadyWatchingStore { | |||
|             this.currentCard.state.initialEventScrollIntoView = undefined; | ||||
|         } | ||||
| 
 | ||||
|         // If the right panel stays open mode is used, and the panel was either
 | ||||
|         // closed or never shown for that room, then force it open and display
 | ||||
|         // the room member list.
 | ||||
|         if ( | ||||
|             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) : undefined; | ||||
|             if (!room?.isSpaceRoom()) { | ||||
|                 history.unshift({ phase: RightPanelPhases.RoomSummary }); | ||||
|             } | ||||
|             this.byRoom[this.viewedRoomId ?? ""] = { | ||||
|                 isOpen: true, | ||||
|                 history, | ||||
|             }; | ||||
|         } | ||||
|         this.emitAndUpdateSettings(); | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Germain
						Germain