XEP-0384: add section about ending a session

This commit is contained in:
sualko 2020-03-08 10:55:43 +01:00
parent 70bdbf31cc
commit 5ffb1279ad
1 changed files with 9 additions and 0 deletions

View File

@ -269,6 +269,15 @@
</iq>]]></example>
<p>A random preKeyPublic entry is selected, and used to build a SignalProtocol session.</p>
</section2>
<section2 topic='Ending a session' anchor='usecases-ending'>
<p>In order to signal a contact that you like to terminate a session, your
device MUST send an &lt;terminate&gt; element to all intended recipient devices
inside an encrypted stanza. A user or client MAY tag the element with a
reason. If a device is receiving a stanza containing a &lt;terminate&gt; element,
it MUST show an information that the peer has ended the session. To prevent
that the user is accidentally sending plaintext messages, the client MUST
block all outgoing message until the user switched to plaintext.</p>
</section2>
<section2 topic='Sending a message' anchor='usecases-messagesend'>
<p>
In order to send a chat message, its &lt;body&gt; first has to be