onEvent -> onStateEvent
Signed-off-by: Travis Ralston <travpc@gmail.com>pull/21833/head
							parent
							
								
									085271a864
								
							
						
					
					
						commit
						929da30df8
					
				|  | @ -39,16 +39,16 @@ module.exports = React.createClass({ | |||
| 
 | ||||
|     componentDidMount: function() { | ||||
|         this._updatePinnedMessages(); | ||||
|         MatrixClientPeg.get().on("RoomState.events", this._onEvent); | ||||
|         MatrixClientPeg.get().on("RoomState.events", this._onStateEvent); | ||||
|     }, | ||||
| 
 | ||||
|     componentWillUnmount: function() { | ||||
|         if (MatrixClientPeg.get()) { | ||||
|             MatrixClientPeg.get().removeListener("RoomState.events", this._onEvent); | ||||
|             MatrixClientPeg.get().removeListener("RoomState.events", this._onStateEvent); | ||||
|         } | ||||
|     }, | ||||
| 
 | ||||
|     _onEvent: function(ev) { | ||||
|     _onStateEvent: function(ev) { | ||||
|         if (ev.getRoomId() === this.props.room.roomId && ev.getType() === "m.room.pinned_events") { | ||||
|             this._updatePinnedMessages(); | ||||
|         } | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 Travis Ralston
						Travis Ralston