BUG: Sync logic was ignoring insertions
diff --git a/model/sync-logic.cc b/model/sync-logic.cc
index 3638045..37c79de 100644
--- a/model/sync-logic.cc
+++ b/model/sync-logic.cc
@@ -152,7 +152,7 @@
SeqNo oldSeq;
tie (inserted, updated, oldSeq) = m_state.update (info, seq);
- if (updated)
+ if (inserted || updated)
{
diffLog->update (info, seq);
m_onUpdate (info->toString (), seq.getSeq(), oldSeq);
@@ -178,7 +178,7 @@
SeqNo oldSeq;
tie (inserted, updated, oldSeq) = m_state.update (info, seq);
- if (updated)
+ if (inserted || updated)
{
diffLog->update (info, seq);
m_onUpdate (info->toString (), seq.getSeq(), oldSeq);