Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit b7569a9

Browse files
committed
Revert auxPanel changes (this should already have been fixed in a separate PR).
1 parent d7f5295 commit b7569a9

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/components/views/rooms/AuxPanel.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,18 +129,15 @@ module.exports = React.createClass({
129129
);
130130

131131
let appsDrawer = null;
132-
let appCount = 0;
133132
if(UserSettingsStore.isFeatureEnabled('matrix_apps') && this.props.showApps) {
134-
const appsStateEvents = this.props.room.currentState.getStateEvents('im.vector.modular.widgets');
135-
if (appsStateEvents) appCount = appsStateEvents.length;
136133
appsDrawer = <AppsDrawer ref="appsDrawer"
137134
room={this.props.room}
138135
userId={this.props.userId}
139136
maxHeight={this.props.maxHeight}/>;
140137
}
141138

142139
return (
143-
<div className={ appCount == 2 ? "mx_RoomView_auxPanel mx_RoomView_auxPanel_wide" : "mx_RoomView_auxPanel" } style={{maxHeight: this.props.maxHeight}} >
140+
<div className="mx_RoomView_auxPanel" style={{maxHeight: this.props.maxHeight}} >
144141
{ appsDrawer }
145142
{ fileDropTarget }
146143
{ callView }

0 commit comments

Comments
 (0)