change last notify id sooner

This commit is contained in:
Benjamin Reis 2018-01-25 15:40:24 +01:00
parent 915f797c67
commit b80aff9c55

View file

@ -55,6 +55,9 @@ void RemoteConferenceEventHandlerPrivate::simpleNotifyReceived (const string &xm
IdentityAddress entityAddress(confInfo->getEntity().c_str());
if (entityAddress == chatRoomId.getPeerAddress()) {
if (confInfo->getVersion().present())
lastNotify = confInfo->getVersion().get();
if (confInfo->getConferenceDescription().present()) {
if (confInfo->getConferenceDescription().get().getSubject().present() &&
!confInfo->getConferenceDescription().get().getSubject().get().empty()
@ -79,8 +82,6 @@ void RemoteConferenceEventHandlerPrivate::simpleNotifyReceived (const string &xm
confListener->onConferenceKeywordsChanged(keywords);
}
}
if (confInfo->getVersion().present())
lastNotify = confInfo->getVersion().get();
if (!confInfo->getUsers().present())
return;