From 32b5b50dacb1bfc02a0baef0eda47df8d5f2be37 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Sun, 29 Jan 2023 15:54:41 +0100 Subject: Fix webassembly/Makefile WASM optimization because allocateUTF8 was missing --- whiteboard.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'whiteboard.cpp') 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); -- cgit v1.2.3