chat: update application badge on notification inline answer

This commit is contained in:
Gautier Pelloux-Prayer 2016-02-03 11:56:29 +01:00
parent 450ac75085
commit 3c4ca7a968
2 changed files with 1 additions and 4 deletions

View file

@ -471,6 +471,7 @@
LinphoneChatMessage *msg = linphone_chat_room_create_message(room, replyText.UTF8String);
linphone_chat_room_send_chat_message(room, msg);
linphone_chat_room_mark_as_read(room);
[PhoneMainView.instance updateApplicationBadgeNumber];
}
}
}

View file

@ -908,13 +908,9 @@ static void linphone_iphone_popup_password_request(LinphoneCore *lc, const char
NSString *callID = [NSString stringWithUTF8String:linphone_chat_message_get_custom_header(msg, "Call-ID")];
const LinphoneAddress *remoteAddress = linphone_chat_message_get_from_address(msg);
NSString *from = [FastAddressBook displayNameForAddress:remoteAddress];
const char *chat = linphone_chat_message_get_text(msg);
if (chat == NULL)
chat = "";
char *c_address = linphone_address_as_string_uri_only(remoteAddress);
NSString *remote_uri = [NSString stringWithUTF8String:c_address];
ms_free(c_address);
if ([UIApplication sharedApplication].applicationState == UIApplicationStateBackground) {