Fixing bug causing outgoing calls to be cancelled. Closes #264

This commit is contained in:
Frederic Jacobs 2015-01-04 15:05:43 +01:00
parent fc6b4b5549
commit 2d850021a0
2 changed files with 2 additions and 2 deletions

View file

@ -121,7 +121,7 @@
InCallViewController *callViewController = [InCallViewController inCallViewControllerWithCallState:latestCall
andOptionallyKnownContact:latestCall.potentiallySpecifiedContact];
if (latestCall.initiatedLocally == false){
if (latestCall.initiatedLocally == NO){
[self.callPickUpFuture.future thenDo:^(NSNumber *accept) {
if ([accept isEqualToNumber:@YES]) {
[callViewController answerButtonTapped];

View file

@ -36,7 +36,7 @@
}
-(bool) isHangupForSession:(int64_t)targetSessionId {
return [self.method isEqualToString:@"DELETE"] && self.tryGetSessionId?[@(targetSessionId) isEqualToNumber:self.tryGetSessionId]:YES;
return [self.method isEqualToString:@"DELETE"] && self.tryGetSessionId?[@(targetSessionId) isEqualToNumber:self.tryGetSessionId]:NO;
}
-(bool) isBusyForSession:(int64_t)targetSessionId {