summaryrefslogtreecommitdiffhomepage
path: root/whiteboard.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'whiteboard.cpp')
-rw-r--r--whiteboard.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/whiteboard.cpp b/whiteboard.cpp
index a49ef73..fcfdca8 100644
--- a/whiteboard.cpp
+++ b/whiteboard.cpp
@@ -107,7 +107,8 @@ void Whiteboard::notify_other_connections_diff(Whiteboard::connection& c, const
boost::beast::flat_buffer buffer;
pt::ptree ptree {make_ptree({
{"type", "getdiff"},
- {"revision", std::to_string(m_storage->getRevision(id)) }
+ {"revision", std::to_string(m_storage->getRevision(id))},
+ {"pos", std::to_string(m_storage->getCursorPos(id)) }
})};
ptree.put_child("serverinfo.diff", diff.get_structure().get_child("diff"));
boost::beast::ostream(buffer) << Reichwein::XML::plain_xml(ptree);