From 584de095bcf26619adfc57f8146301e02c4338ac Mon Sep 17 00:00:00 2001 From: Benjamin Reis Date: Wed, 18 Apr 2018 14:39:28 +0200 Subject: [PATCH] always set conference subscribe event --- .../handlers/local-conference-list-event-handler.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/conference/handlers/local-conference-list-event-handler.cpp b/src/conference/handlers/local-conference-list-event-handler.cpp index eb83c3109..3d3ac4f1f 100644 --- a/src/conference/handlers/local-conference-list-event-handler.cpp +++ b/src/conference/handlers/local-conference-list-event-handler.cpp @@ -104,10 +104,6 @@ void LocalConferenceListEventHandler::subscribeReceived (LinphoneEvent *lev, con continue; } - string notifyBody = handler->getNotifyForId(notifyId, (chatRoom->getCapabilities() & AbstractChatRoom::Capabilities::OneToOne)); - if (notifyBody.empty()) - continue; - shared_ptr participant = chatRoom->findParticipant(participantAddr); if (!participant) { lError() << "Received subscribe for unknown participant: " << participantAddr << " for chat room: " << chatRoomId; @@ -121,6 +117,10 @@ void LocalConferenceListEventHandler::subscribeReceived (LinphoneEvent *lev, con } device->setConferenceSubscribeEvent((subscriptionState == LinphoneSubscriptionIncomingReceived) ? lev : nullptr); + string notifyBody = handler->getNotifyForId(notifyId, (chatRoom->getCapabilities() & AbstractChatRoom::Capabilities::OneToOne)); + if (notifyBody.empty()) + continue; + noContent = false; Content *content = new Content(); if (notifyId > 0) {