mirror of https://github.com/procxx/kepka.git
				
				
				
			Fix assertion violation in calls.
This commit is contained in:
		
							parent
							
								
									f291e365e5
								
							
						
					
					
						commit
						22b47925d4
					
				| 
						 | 
					@ -174,7 +174,8 @@ void Call::start(bytes::const_span random) {
 | 
				
			||||||
		} else {
 | 
							} else {
 | 
				
			||||||
			startIncoming();
 | 
								startIncoming();
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	} else if (_state == State::ExchangingKeys && _answerAfterDhConfigReceived) {
 | 
						} else if (_state == State::ExchangingKeys
 | 
				
			||||||
 | 
							&& _answerAfterDhConfigReceived) {
 | 
				
			||||||
		answer();
 | 
							answer();
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
| 
						 | 
					@ -409,7 +410,9 @@ bool Call::handleUpdate(const MTPPhoneCall &call) {
 | 
				
			||||||
		if (data.vid.v != _id) {
 | 
							if (data.vid.v != _id) {
 | 
				
			||||||
			return false;
 | 
								return false;
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		if (_type == Type::Incoming && _state == State::ExchangingKeys) {
 | 
							if (_type == Type::Incoming
 | 
				
			||||||
 | 
								&& _state == State::ExchangingKeys
 | 
				
			||||||
 | 
								&& !_controller) {
 | 
				
			||||||
			startConfirmedCall(data);
 | 
								startConfirmedCall(data);
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	} return true;
 | 
						} return true;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue