Merge branch 'krille/fix-wait-for-keys' into 'main'
fix: Wait for keys in pusher See merge request famedly/company/frontend/famedlysdk!1012
This commit is contained in:
		
						commit
						b7f7c6c28b
					
				|  | @ -1,3 +1,6 @@ | ||||||
|  | ## [0.8.20] - 14th Apr 2022 | ||||||
|  | - fix: Wait for keys in push helper | ||||||
|  | 
 | ||||||
| ## [0.8.19] - 14th Apr 2022 | ## [0.8.19] - 14th Apr 2022 | ||||||
| - feat: Get event from push notification | - feat: Get event from push notification | ||||||
| - feat: Add more localization strings and add default matrix localizations | - feat: Add more localization strings and add default matrix localizations | ||||||
|  |  | ||||||
|  | @ -1088,11 +1088,13 @@ class Client extends MatrixApi { | ||||||
| 
 | 
 | ||||||
|     final encryption = this.encryption; |     final encryption = this.encryption; | ||||||
|     if (event.type == EventTypes.Encrypted && encryption != null) { |     if (event.type == EventTypes.Encrypted && encryption != null) { | ||||||
|       event = await encryption.decryptRoomEvent(roomId, event); |       var decrypted = await encryption.decryptRoomEvent(roomId, event); | ||||||
|       if (event.type == EventTypes.Encrypted && _currentSync != null) { |       if (decrypted.messageType == MessageTypes.BadEncrypted && | ||||||
|         await _currentSync; |           prevBatch != null) { | ||||||
|         event = await encryption.decryptRoomEvent(roomId, event); |         await oneShotSync(); | ||||||
|  |         decrypted = await encryption.decryptRoomEvent(roomId, event); | ||||||
|       } |       } | ||||||
|  |       event = decrypted; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     if (storeInDatabase) { |     if (storeInDatabase) { | ||||||
|  |  | ||||||
|  | @ -1,6 +1,6 @@ | ||||||
| name: matrix | name: matrix | ||||||
| description: Matrix Dart SDK | description: Matrix Dart SDK | ||||||
| version: 0.8.19 | version: 0.8.20 | ||||||
| homepage: https://famedly.com | homepage: https://famedly.com | ||||||
| repository: https://gitlab.com/famedly/company/frontend/famedlysdk.git | repository: https://gitlab.com/famedly/company/frontend/famedlysdk.git | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue