From 311b878a24c8342c398f0eb8ddb676954565c789 Mon Sep 17 00:00:00 2001 From: Guillaume BIENKOWSKI Date: Tue, 25 Nov 2014 10:58:50 +0100 Subject: [PATCH] Update API use for linphone_content --- Classes/LinphoneUI/UIStateBar.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/LinphoneUI/UIStateBar.m b/Classes/LinphoneUI/UIStateBar.m index 14debb2c0..80c36f97a 100644 --- a/Classes/LinphoneUI/UIStateBar.m +++ b/Classes/LinphoneUI/UIStateBar.m @@ -162,10 +162,10 @@ int messagesUnreadCount; if ((content == NULL) || (strcmp("application", linphone_content_get_type(content)) != 0) || (strcmp("simple-message-summary", linphone_content_get_subtype(content)) != 0) - || (linphone_content_get_data(content) == NULL)) { + || (linphone_content_get_buffer(content) == NULL)) { return; } - const char* body = linphone_content_get_data(content); + const char* body = linphone_content_get_buffer(content); if ((body = strstr(body, "voice-message: ")) == NULL) { [LinphoneLogger log:LinphoneLoggerWarning format:@"Received new NOTIFY from voice mail but could not find 'voice-message' in BODY. Ignoring it."]; return;