fix sync logic bug about seqno
demo works with small flaws
diff --git a/model/sync-logic.cc b/model/sync-logic.cc
index 31a161b..860f119 100644
--- a/model/sync-logic.cc
+++ b/model/sync-logic.cc
@@ -299,7 +299,15 @@
                 {
                   diffLog->update (info, seq);
                   //m_onUpdate (info->toString (), seq, oldSeq);
-                  MissingDataInfo mdi = {info->toString(), ++oldSeq, seq};
+                  if (!oldSeq.isValid())
+                  {
+                    oldSeq = SeqNo(seq.getSession(), 0);
+                  }
+                  else
+                  {
+                    ++oldSeq;
+                  }
+                  MissingDataInfo mdi = {info->toString(), oldSeq, seq};
                   v.push_back(mdi);
                 }
             }