mirror of https://github.com/vector-im/riot-web
				
				
				
			Fix linting errors
							parent
							
								
									2aeaaf26ca
								
							
						
					
					
						commit
						6c9716637e
					
				|  | @ -39,13 +39,13 @@ module.exports = React.createClass({ | |||
|         this._loadGroupFromServer(this.props.groupId); | ||||
|     }, | ||||
| 
 | ||||
|     componentWillReceiveProps: function(new_props) { | ||||
|         if (this.props.groupId != new_props.groupId) { | ||||
|     componentWillReceiveProps: function(newProps) { | ||||
|         if (this.props.groupId != newProps.groupId) { | ||||
|             this.setState({ | ||||
|                 summary: null, | ||||
|                 error: null, | ||||
|             }) | ||||
|             this._loadGroupFromServer(new_props.groupId); | ||||
|             }); | ||||
|             this._loadGroupFromServer(newProps.groupId); | ||||
|         } | ||||
|     }, | ||||
| 
 | ||||
|  |  | |||
|  | @ -487,10 +487,12 @@ module.exports = React.createClass({ | |||
|                 this.notifyNewScreen('directory'); | ||||
|                 break; | ||||
|             case 'view_group': | ||||
|                 const groupId = payload.group_id; | ||||
|                 this.setState({currentGroupId: groupId}); | ||||
|                 this._setPage(PageTypes.GroupView); | ||||
|                 this.notifyNewScreen('group/' + groupId); | ||||
|                 { | ||||
|                     const groupId = payload.group_id; | ||||
|                     this.setState({currentGroupId: groupId}); | ||||
|                     this._setPage(PageTypes.GroupView); | ||||
|                     this.notifyNewScreen('group/' + groupId); | ||||
|                 } | ||||
|                 break; | ||||
|             case 'view_home_page': | ||||
|                 this._setPage(PageTypes.HomePage); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 David Baker
						David Baker