From ab8e52bfbb420acf7b24f14029e9b1a034c7d739 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Wed, 29 Nov 2017 16:57:41 +0100 Subject: [PATCH] fix coding style --- Classes/LinphoneAppDelegate.m | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Classes/LinphoneAppDelegate.m b/Classes/LinphoneAppDelegate.m index dcb97bcd9..3ae73242e 100644 --- a/Classes/LinphoneAppDelegate.m +++ b/Classes/LinphoneAppDelegate.m @@ -664,8 +664,7 @@ didInvalidatePushTokenForType:(NSString *)type { if ([response.actionIdentifier isEqual:@"Answer"]) { // use the standard handler - [PhoneMainView.instance - changeCurrentView:CallView.compositeViewDescription]; + [PhoneMainView.instance changeCurrentView:CallView.compositeViewDescription]; linphone_call_accept(call); } else if ([response.actionIdentifier isEqual:@"Decline"]) { linphone_call_decline(call, LinphoneReasonDeclined); @@ -676,14 +675,11 @@ didInvalidatePushTokenForType:(NSString *)type { objectForKey:@"from_addr"]; [LinphoneManager.instance send:replyText to:from_address]; } else if ([response.actionIdentifier isEqual:@"Seen"]) { - NSString *from = [response.notification.request.content.userInfo - objectForKey:@"chat_room_address"]; - LinphoneChatRoom *room = - linphone_core_get_chat_room_from_uri(LC, [from UTF8String]); + NSString *from = [response.notification.request.content.userInfo objectForKey:@"chat_room_address"]; + LinphoneChatRoom *room = linphone_core_get_chat_room_from_uri(LC, [from UTF8String]); if (room) { linphone_chat_room_mark_as_read(room); - TabBarView *tab = (TabBarView *)[PhoneMainView.instance.mainViewController - getCachedController:NSStringFromClass(TabBarView.class)]; + TabBarView *tab = (TabBarView *)[PhoneMainView.instance.mainViewController getCachedController:NSStringFromClass(TabBarView.class)]; [tab update:YES]; [PhoneMainView.instance updateApplicationBadgeNumber]; }