mirror of
				https://github.com/vector-im/element-web.git
				synced 2025-10-31 00:01:23 +01:00 
			
		
		
		
	Revert "Merge pull request #3067 from vector-im/matthew/fix-badge-spam"
This reverts commit f9db7f017d64e6bb4021fd04bfb99162b008bd79, reversing changes made to 71b149de760724d8329b260de222aea507b70fe8. This caused `number is not defined`
This commit is contained in:
		
							parent
							
								
									f9db7f017d
								
							
						
					
					
						commit
						f29e0bfe6d
					
				| @ -58,7 +58,6 @@ function platformFriendlyName() { | |||||||
| 
 | 
 | ||||||
| export default class ElectronPlatform extends VectorBasePlatform { | export default class ElectronPlatform extends VectorBasePlatform { | ||||||
|     setNotificationCount(count: number) { |     setNotificationCount(count: number) { | ||||||
|         if (this.notificationCount === number) return; |  | ||||||
|         super.setNotificationCount(count); |         super.setNotificationCount(count); | ||||||
|         // this sometimes throws because electron is made of fail:
 |         // this sometimes throws because electron is made of fail:
 | ||||||
|         // https://github.com/electron/electron/issues/7351
 |         // https://github.com/electron/electron/issues/7351
 | ||||||
|  | |||||||
| @ -60,13 +60,11 @@ export default class WebPlatform extends VectorBasePlatform { | |||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     setNotificationCount(count: number) { |     setNotificationCount(count: number) { | ||||||
|         if (this.notificationCount === number) return; |  | ||||||
|         super.setNotificationCount(count); |         super.setNotificationCount(count); | ||||||
|         this._updateFavicon(); |         this._updateFavicon(); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     setErrorStatus(errorDidOccur: boolean) { |     setErrorStatus(errorDidOccur: boolean) { | ||||||
|         if (this.errorDidOccur === errorDidOccur) return; |  | ||||||
|         super.setErrorStatus(errorDidOccur); |         super.setErrorStatus(errorDidOccur); | ||||||
|         this._updateFavicon(); |         this._updateFavicon(); | ||||||
|     } |     } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user