Fix altertion deletion on edit from GM.
This commit is contained in:
		
							parent
							
								
									c13cbdcd09
								
							
						
					
					
						commit
						fed5db7fa0
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
					@ -120,11 +120,11 @@ class AlterationStore(
 | 
				
			||||||
    private suspend fun handleMessage(message: SocketMessage) {
 | 
					    private suspend fun handleMessage(message: SocketMessage) {
 | 
				
			||||||
        when (message) {
 | 
					        when (message) {
 | 
				
			||||||
            is AlterationApiSynchronisation -> when (message) {
 | 
					            is AlterationApiSynchronisation -> when (message) {
 | 
				
			||||||
                is ApiSynchronisation.AlterationDelete -> updateAlterationFlow(
 | 
					                is ApiSynchronisation.AlterationUpdate -> updateAlterationFlow(
 | 
				
			||||||
                    alterationId = message.alterationId,
 | 
					                    alterationId = message.alterationId,
 | 
				
			||||||
                )
 | 
					                )
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                is ApiSynchronisation.AlterationUpdate -> _alterationsFlow.update { alterations ->
 | 
					                is ApiSynchronisation.AlterationDelete -> _alterationsFlow.update { alterations ->
 | 
				
			||||||
                    alterations.toMutableMap().also {
 | 
					                    alterations.toMutableMap().also {
 | 
				
			||||||
                        it.remove(message.alterationId)
 | 
					                        it.remove(message.alterationId)
 | 
				
			||||||
                    }
 | 
					                    }
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue