From 2fad0db475de435b133a489679d88ab89c63ac84 Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Mon, 23 Apr 2018 12:33:34 +0200 Subject: [PATCH] use weak equal on content type --- .../handlers/remote-conference-list-event-handler.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/conference/handlers/remote-conference-list-event-handler.cpp b/src/conference/handlers/remote-conference-list-event-handler.cpp index 6b24f9a7b..0fad80d66 100644 --- a/src/conference/handlers/remote-conference-list-event-handler.cpp +++ b/src/conference/handlers/remote-conference-list-event-handler.cpp @@ -129,7 +129,7 @@ void RemoteConferenceListEventHandler::notifyReceived (const Content *notifyCont char *from = linphone_address_as_string(linphone_event_get_from(lev)); const IdentityAddress local(from); - if (notifyContent->getContentType() == ContentType::ConferenceInfo) { + if (notifyContent->getContentType().weakEqual(ContentType::ConferenceInfo)) { // Simple notify received directly from a chat-room const string &xmlBody = notifyContent->getBodyAsString(); istringstream data(xmlBody); @@ -170,9 +170,9 @@ void RemoteConferenceListEventHandler::notifyReceived (const Content *notifyCont if (!handler) continue; - if (contentType == ContentType::Multipart) + if (contentType.weakEqual(ContentType::Multipart)) handler->multipartNotifyReceived(body); - else if (contentType == ContentType::ConferenceInfo) + else if (contentType.weakEqual(ContentType::ConferenceInfo)) handler->notifyReceived(body); } }