text tweaks

git-svn-id: file:///home/ksmith/gitmigration/svn/xmpp/trunk@768 4b5297f7-1745-476d-ba37-a9c6900126ab
This commit is contained in:
Peter Saint-Andre 2007-04-17 22:51:21 +00:00
parent a4703933c1
commit dc752f92ae
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@
<version>0.3</version>
<date>2007-01-29</date>
<initials>ip</initials>
<remark><p>Described handling of unavailable presence and 'chat' messages without thread IDs; minor changes</p></remark>
<remark><p>Described handling of unavailable presence and chat messages without thread IDs; minor changes.</p></remark>
</revision>
<revision>
<version>0.2</version>
@ -81,7 +81,7 @@
</section1>
<section1 topic='Handling' anchor='handling'>
<p>In the context of &lt;message/&gt; stanzas of type 'chat' exchanged between two entities, the value of the &lt;thread/&gt; element shall be considered equivalent to a unique identifier for the chat session or conversation thread. If an entity receives such a message with a new or unknown ThreadID, it SHOULD treat the message as part of a session with unnegotiated parameters (i.e., as equivalent to the first message in a chat session that has been negotiated via <cite>XEP-0155</cite> with no parameters specified). An entity SHOULD destroy the thread when it sends or receives a <cite>XEP-0155</cite> "terminate" stanza (such a stanza SHOULD be sent even for sessions that were not negotitated with <cite>XEP-0155</cite>) and MAY destroy the thread when it goes offline, but SHOULD NOT destroy the thread if a human user merely closes a window in a client interface.</p>
<p>If an entity receives an XMPP presence stanza of type 'unavailable' from the other entity during a chat session, it SHOULD NOT destroy the thread, it SHOULD assume the other entity will still be able to continue the session (perhaps the other entity simply became "invisible", or was temporarily disconnected by a network error, or it is persisting the state of the session until it reconnects and receives "offline" messages).</p>
<p>If an entity receives an XMPP presence stanza of type 'unavailable' from the other entity during a chat session, it SHOULD NOT destroy the thread; instead, it SHOULD assume the other entity will still be able to continue the session (perhaps the other entity simply became "invisible", or was temporarily disconnected by a network error, or it is persisting the state of the session until it reconnects and receives "offline" messages).</p>
<p>When sending a &lt;message/&gt; stanza of type 'normal', the value of the &lt;thread/&gt; element is used to uniquely identify a conversation thread which may not be progressing in real-time. A &lt;message/&gt; stanza of type 'normal' SHOULD always use a new &lt;thread/&gt; element identifier unless it is written in direct reply to another &lt;message/&gt; stanza, in which case the &lt;thread/&gt; element of the original &lt;message/&gt; should be used. Determining what constitutes a &lt;message/&gt; stanza written in reply to another is a matter left to individual implementation, but it is envisaged that in most cases it would be the result of, e.g., the user clicking a 'reply' button when reading the contents of the previous stanza; alternatively, the entity that replies can include an "In-Reply-To" header as described in the <link url='#impl'>Implementation Notes</link> section of this document.</p>
<p>There are no special handling requirements related to threads in the context of &lt;message/&gt; stanzas of type 'headline'.</p>
<p>When displaying historical conversations within a user interface, a client SHOULD provide a visual indication of thread membership of messages. Methods for such indications include (non-exhaustively) the grouping of all messages within a thread together, providing an index of threads, or formatting all messages within a thread in a cohesive manner, e.g. with a uniform coloring.</p>