diff --git a/src/conference/handlers/local-conference-event-handler.cpp b/src/conference/handlers/local-conference-event-handler.cpp index da786a78c..0e3b12c72 100644 --- a/src/conference/handlers/local-conference-event-handler.cpp +++ b/src/conference/handlers/local-conference-event-handler.cpp @@ -321,11 +321,7 @@ void LocalConferenceEventHandlerPrivate::notifyResponseCb (const LinphoneEvent * // ----------------------------------------------------------------------------- string LocalConferenceEventHandlerPrivate::createNotify (ConferenceType confInfo, int notifyId, bool isFullState) { - if (notifyId == -1) { - lastNotify = lastNotify + 1; - confInfo.setVersion(lastNotify); - } else - confInfo.setVersion(static_cast(notifyId)); + confInfo.setVersion(notifyId == -1 ? ++lastNotify : static_cast(notifyId)); confInfo.setState(isFullState ? StateType::full : StateType::partial); if (!confInfo.getConferenceDescription()) {