<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div><br></div><div>I think the issue with embedding it in a message is the neither XEP-0136 or XEP-0313 store message that have no body, which a includes a last read message.</div><blockquote type="cite"><div id="reply-content"><br></div><div id="reply-content">Keeping it as a separate XEP means it can be used with any Message Archiving solution.</div><div id="reply-content"><br></div><div id="reply-content">Also the auto sending of read is something I want to avoid, if they haven't read it then don't move the marker. There is a separate delivered marker for this. I appreciate that delivery receipts already exist but they have to be sent for every message that requests them and as you alluded to, how your supposed to handle them with archived messages is a bit ambiguous.</div><div id="reply-content"><br></div><div id="reply-content">One solution I thought of for duplicate message ids, is for the server to embed a timestamp based on the archive into the chat marker.</div><div id="reply-content"><br></div><div id="reply-content">Naturally if I turned this into any XEP then all of this would only be sent to clients that advertise support.</div>
<div id="CFDD3CA7A4704484B0D708FA1D3700A8"><div><br></div>Regards<br><br>Spencer<div><br></div></div>
<p style="color: #A0A0A8;">On Sunday, 19 May 2013 at 09:23, Lance Stout wrote:</p>
<blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
<div id="quoted-message-content"><div><blockquote type="cite"><div>Any thoughts either way on my "Chat Marker" proposal?</div></blockquote><div><br></div><div>So, after some pondering, there are three user experiences I can see:</div><div><br></div><div>1) The primary clients talking to each other:</div><div><br></div><div>So XEP-0085 by itself should cover this, as Stefan pointed out. However, it</div><div>might leave holes because of non-instanaeous delivery. Eg, Juliet sends Romeo</div><div>a message at the same time he sends an active state message. So Juliet would</div><div>assume Romeo has read a message that he might not have actually received yet.</div><div><br></div><div>If we make a new element to tie the update with a specific message</div><div>ID, then that potential hole goes away. So we can add a new</div><div><br></div><div> <lastread id="1234etc" xmlns="urn:xmpp:lastread:tmp" /></div><div><br></div><div>element to outgoing messages when:</div><div><br></div><div>a) The last ID sent by the other person has changed (so only send a</div><div> <lastread /> update once per change in ID)</div><div>b) If the user doesn't send a response chat within some period of time,</div><div> automatically send a <lastread /> update. Basically, give the user a chance</div><div> to respond with a message and piggyback the <lastread /> update with that (maybe</div><div> a composing state message would suffice), but if after a few seconds the user</div><div> hasn't done something and the client is still focused and active, etc, emit a</div><div> standalone update.</div><div><br></div><div>As usual, we don't send these updates when the other client doesn't advertise</div><div>support for it in disco.</div><div><br></div><div>The combination of just delivery receipt and chat state might be sufficient, </div><div>but I've not been able to convince myself yet that it would properly handle </div><div>case 3 with offline messages.</div><div><br></div><div><br></div><div>2) A secondary client that is online, which wishes to stay in sync:</div><div><br></div><div>This is the purpose of XEP-0280 Message Carbons. So long as the delivery receipts,</div><div>chat state notifications and the <lastread /> updates from case 1 are also synced</div><div>via carbons, everything should be covered.</div><div><br></div><div><br></div><div>3) A user has received messages while offline:</div><div><br></div><div>So this is the fun one because it requires some interaction with the archives.</div><div>When requesting history, the results should note the ID where the offline</div><div>storage began, as Zash pointed out.</div><div><br></div><div>Based on that, the client can send a <lastread /> update. Likewise it can</div><div>generate the delivery receipts requested in the offline messages (although,</div><div>there shouldn't actually be any since you wouldn't request receipts when sending</div><div>to an offline JID, and XEP-0184 has a slight ambiguity with how to handle offline</div><div>messages).</div><div><br></div><div>I would suggest that standalone lastread updates should be included in archived </div><div>history because they're required to fully resume conversation state to match</div><div>other systems like iMessage, etc. The main question at this point is where to </div><div>send the updates (if at all), particularly when the sender JID is no longer online.</div><div><br></div><div><br></div><div><br></div><div>In general, what makes things challenging is that message IDs are not required to</div><div>be globally unique. The same ID could be used multiple times during the same</div><div>conversation if a user is bouncing between clients or reconnects.</div><div><br></div><div><br></div><div>-- Lance</div><div>_______________________________________________</div><div>JDev mailing list</div><div>Info: <a href="http://mail.jabber.org/mailman/listinfo/jdev">http://mail.jabber.org/mailman/listinfo/jdev</a></div><div>Unsubscribe: <a href="mailto:JDev-unsubscribe@jabber.org">JDev-unsubscribe@jabber.org</a></div><div>_______________________________________________</div></div></div>
<div style="border-bottom: 1px solid #f0f0f0; height: 10px;">
</div>
<br>
<div style="font-weight: bold; font-size: 14px; margin-bottom: 5px;">Attachments:</div>
<div>
<div style="">- smime.p7s</div>
</div>
</blockquote>
<div>
<br>
</div>
</blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>JDev mailing list</span><br><span>Info: <a href="http://mail.jabber.org/mailman/listinfo/jdev">http://mail.jabber.org/mailman/listinfo/jdev</a></span><br><span>Unsubscribe: <a href="mailto:JDev-unsubscribe@jabber.org">JDev-unsubscribe@jabber.org</a></span><br><span>_______________________________________________</span><br></div></blockquote></body></html>