do not increment lastNotify on a full state

This commit is contained in:
Benjamin Reis 2017-12-06 14:23:03 +01:00
parent 6aee9994b9
commit c5cfbc5892
2 changed files with 2 additions and 2 deletions

View file

@ -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);

View file

@ -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() <<