Check matrix client exists when stopping
							parent
							
								
									7044410a13
								
							
						
					
					
						commit
						cdd73e6e1f
					
				|  | @ -52,7 +52,9 @@ class ActiveWidgetStore extends EventEmitter { | |||
|     } | ||||
| 
 | ||||
|     stop() { | ||||
|         MatrixClientPeg.get().removeListener('RoomState.events', this.onRoomStateEvents); | ||||
|         if (MatrixClientPeg.get()) { | ||||
|             MatrixClientPeg.get().removeListener('RoomState.events', this.onRoomStateEvents); | ||||
|         } | ||||
|         this._capsByWidgetId = {}; | ||||
|         this._widgetMessagingByWidgetId = {}; | ||||
|         this._roomIdByWidgetId = {}; | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 David Baker
						David Baker