mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-10-31 16:21:46 +01:00 
			
		
		
		
	Merge pull request #4026 from matrix-org/dbkr/tagorderstore_leak
Fix listener leak in TagPanel
This commit is contained in:
		
						commit
						9bfed510b1
					
				| @ -1,5 +1,6 @@ | |||||||
| /* | /* | ||||||
| Copyright 2017, 2018 New Vector Ltd. | Copyright 2017, 2018 New Vector Ltd. | ||||||
|  | Copyright 2020 The Matrix.org Foundation C.I.C. | ||||||
| 
 | 
 | ||||||
| Licensed under the Apache License, Version 2.0 (the "License"); | Licensed under the Apache License, Version 2.0 (the "License"); | ||||||
| you may not use this file except in compliance with the License. | you may not use this file except in compliance with the License. | ||||||
| @ -64,8 +65,8 @@ const TagPanel = createReactClass({ | |||||||
|         this.unmounted = true; |         this.unmounted = true; | ||||||
|         this.context.removeListener("Group.myMembership", this._onGroupMyMembership); |         this.context.removeListener("Group.myMembership", this._onGroupMyMembership); | ||||||
|         this.context.removeListener("sync", this._onClientSync); |         this.context.removeListener("sync", this._onClientSync); | ||||||
|         if (this._filterStoreToken) { |         if (this._tagOrderStoreToken) { | ||||||
|             this._filterStoreToken.remove(); |             this._tagOrderStoreToken.remove(); | ||||||
|         } |         } | ||||||
|     }, |     }, | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user