From 5ffb1279addd0bae620f1407683aa335e81888b8 Mon Sep 17 00:00:00 2001 From: sualko Date: Sun, 8 Mar 2020 10:55:43 +0100 Subject: [PATCH] XEP-0384: add section about ending a session --- xep-0384.xml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/xep-0384.xml b/xep-0384.xml index bdf7b16a..e7e5ef35 100644 --- a/xep-0384.xml +++ b/xep-0384.xml @@ -269,6 +269,15 @@ ]]>

A random preKeyPublic entry is selected, and used to build a SignalProtocol session.

+ +

In order to signal a contact that you like to terminate a session, your + device MUST send an <terminate> 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 <terminate> 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.

+

In order to send a chat message, its <body> first has to be