Remove unused props

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
Michael Telatynski 2020-02-14 10:32:42 +00:00
parent e2b7be84b2
commit 8087f18bf7
2 changed files with 0 additions and 11 deletions

View File

@ -46,8 +46,6 @@ export default class RoomSubList extends React.PureComponent {
tagName: PropTypes.string, tagName: PropTypes.string,
addRoomLabel: PropTypes.string, addRoomLabel: PropTypes.string,
order: PropTypes.string.isRequired,
// passed through to RoomTile and used to highlight room with `!` regardless of notifications count // passed through to RoomTile and used to highlight room with `!` regardless of notifications count
isInvite: PropTypes.bool, isInvite: PropTypes.bool,

View File

@ -700,13 +700,11 @@ export default createReactClass({
list: [], list: [],
extraTiles: this._makeGroupInviteTiles(this.props.searchFilter), extraTiles: this._makeGroupInviteTiles(this.props.searchFilter),
label: _t('Community Invites'), label: _t('Community Invites'),
order: "recent",
isInvite: true, isInvite: true,
}, },
{ {
list: this.state.lists['im.vector.fake.invite'], list: this.state.lists['im.vector.fake.invite'],
label: _t('Invites'), label: _t('Invites'),
order: "recent",
incomingCall: incomingCallIfTaggedAs('im.vector.fake.invite'), incomingCall: incomingCallIfTaggedAs('im.vector.fake.invite'),
isInvite: true, isInvite: true,
}, },
@ -714,14 +712,12 @@ export default createReactClass({
list: this.state.lists['m.favourite'], list: this.state.lists['m.favourite'],
label: _t('Favourites'), label: _t('Favourites'),
tagName: "m.favourite", tagName: "m.favourite",
order: "manual",
incomingCall: incomingCallIfTaggedAs('m.favourite'), incomingCall: incomingCallIfTaggedAs('m.favourite'),
}, },
{ {
list: this.state.lists['im.vector.fake.direct'], list: this.state.lists['im.vector.fake.direct'],
label: _t('Direct Messages'), label: _t('Direct Messages'),
tagName: "im.vector.fake.direct", tagName: "im.vector.fake.direct",
order: "recent",
incomingCall: incomingCallIfTaggedAs('im.vector.fake.direct'), incomingCall: incomingCallIfTaggedAs('im.vector.fake.direct'),
onAddRoom: () => {dis.dispatch({action: 'view_create_chat'});}, onAddRoom: () => {dis.dispatch({action: 'view_create_chat'});},
addRoomLabel: _t("Start chat"), addRoomLabel: _t("Start chat"),
@ -729,7 +725,6 @@ export default createReactClass({
{ {
list: this.state.lists['im.vector.fake.recent'], list: this.state.lists['im.vector.fake.recent'],
label: _t('Rooms'), label: _t('Rooms'),
order: "recent",
incomingCall: incomingCallIfTaggedAs('im.vector.fake.recent'), incomingCall: incomingCallIfTaggedAs('im.vector.fake.recent'),
onAddRoom: () => {dis.dispatch({action: 'view_create_room'});}, onAddRoom: () => {dis.dispatch({action: 'view_create_room'});},
}, },
@ -744,7 +739,6 @@ export default createReactClass({
key: tagName, key: tagName,
label: labelForTagName(tagName), label: labelForTagName(tagName),
tagName: tagName, tagName: tagName,
order: "manual",
incomingCall: incomingCallIfTaggedAs(tagName), incomingCall: incomingCallIfTaggedAs(tagName),
}; };
}); });
@ -754,13 +748,11 @@ export default createReactClass({
list: this.state.lists['m.lowpriority'], list: this.state.lists['m.lowpriority'],
label: _t('Low priority'), label: _t('Low priority'),
tagName: "m.lowpriority", tagName: "m.lowpriority",
order: "recent",
incomingCall: incomingCallIfTaggedAs('m.lowpriority'), incomingCall: incomingCallIfTaggedAs('m.lowpriority'),
}, },
{ {
list: this.state.lists['im.vector.fake.archived'], list: this.state.lists['im.vector.fake.archived'],
label: _t('Historical'), label: _t('Historical'),
order: "recent",
incomingCall: incomingCallIfTaggedAs('im.vector.fake.archived'), incomingCall: incomingCallIfTaggedAs('im.vector.fake.archived'),
startAsHidden: true, startAsHidden: true,
showSpinner: this.state.isLoadingLeftRooms, showSpinner: this.state.isLoadingLeftRooms,
@ -770,7 +762,6 @@ export default createReactClass({
list: this.state.lists['m.server_notice'], list: this.state.lists['m.server_notice'],
label: _t('System Alerts'), label: _t('System Alerts'),
tagName: "m.lowpriority", tagName: "m.lowpriority",
order: "recent",
incomingCall: incomingCallIfTaggedAs('m.server_notice'), incomingCall: incomingCallIfTaggedAs('m.server_notice'),
}, },
]); ]);