Commit c5cfbc58 authored by Benjamin REIS's avatar Benjamin REIS
Browse files

do not increment lastNotify on a full state

parent 6aee9994
......@@ -52,7 +52,7 @@ private:
ChatRoomId chatRoomId;
LocalConference *conf = nullptr;
unsigned int lastNotify = 0;
unsigned int lastNotify = 1;
std::string createNotify (Xsd::ConferenceInfo::ConferenceType confInfo, int notifyId = -1, bool isFullState = false);
std::string createNotifySubjectChanged (const std::string &subject, int notifyId = -1);
......
......@@ -389,7 +389,7 @@ void LocalConferenceEventHandler::subscribeReceived (LinphoneEvent *lev) {
device->setConferenceSubscribeEvent(lev);
if (lastNotify == 0) {
lInfo() << "Sending initial notify of conference:" << d->conf->getConferenceAddress().asString() << " to: " << device->getAddress().asString();
d->notifyFullState(d->createNotifyFullState(), device);
d->notifyFullState(d->createNotifyFullState(static_cast<int>(d->lastNotify)), device);
} else if (lastNotify < d->lastNotify) {
lInfo() << "Sending all missed notify [" << lastNotify << "-" << d->lastNotify <<
"] for conference:" << d->conf->getConferenceAddress().asString() <<
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment