<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [postMessage] "Save" state changes"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=104156#c6">Comment # 6</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [postMessage] "Save" state changes"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=104156">bug 104156</a>
              from <span class="vcard"><a class="email" href="mailto:machniak@kolabsys.com" title="Aleksander Machniak <machniak@kolabsys.com>"> <span class="fn">Aleksander Machniak</span></a>
</span></b>
        <pre>I wasn't aware that changes are saved on Close_Session. However, I'm confused,
because the desktop version does not behave like that. Well, at least not in
single user mode.

When you change anything in LibreOffice Writer document and press Close button
(in window or from menu) it will ask you if you want to keep the changes. Why
something like this could not exist in Online version?

So, I could probably workaround that and not use Close_Session and just close
the window in case the user wan't to close and cancel changes. However,
Close_Session has one feature that would be hard to workaround. It informs all
users in the session that the session has been closed.

Maybe Close_Session should have a parameter to disable saving changes.

BTW, Close_Session is not documented in
<a href="https://www.collaboraoffice.com/collabora-online-editor-api-reference">https://www.collaboraoffice.com/collabora-online-editor-api-reference</a></pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>