fix: remove pendaing outbound group session creation on completed or errored
This commit is contained in:
		
							parent
							
								
									118f2e6b97
								
							
						
					
					
						commit
						2cd4eb5e2c
					
				|  | @ -443,9 +443,12 @@ class KeyManager { | ||||||
|     } |     } | ||||||
|     _pendingNewOutboundGroupSessions[roomId] = |     _pendingNewOutboundGroupSessions[roomId] = | ||||||
|         _createOutboundGroupSession(roomId); |         _createOutboundGroupSession(roomId); | ||||||
|  |     try { | ||||||
|       await _pendingNewOutboundGroupSessions[roomId]; |       await _pendingNewOutboundGroupSessions[roomId]; | ||||||
|  |     } finally { | ||||||
|       return _pendingNewOutboundGroupSessions.remove(roomId)!; |       return _pendingNewOutboundGroupSessions.remove(roomId)!; | ||||||
|     } |     } | ||||||
|  |   } | ||||||
| 
 | 
 | ||||||
|   /// Prepares an outbound group session for a given room ID. That is, load it from |   /// Prepares an outbound group session for a given room ID. That is, load it from | ||||||
|   /// the database, cycle it if needed and create it if absent. |   /// the database, cycle it if needed and create it if absent. | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue