On Fri, 2011-12-23 at 20:01 -0800, Artur Hefczyc wrote: > Hi, > > I frequently switch IM client running on different devices (mobile, laptop, > ....) and I would > love to have a feature to continue last chat with some recent chat messages > displayed > on a new device. I have an idea how to implement it in the Tigase server and > our mobile > client (described below) and I was wondering if there is any XEP which could > aid in this > task from the protocol side. XEP-0280: Message Carbons is also meant for this use case.
> The idea is following: > > 1. User chats with a friend on one device > 2. Server records and remembers somehow last chats (by thread id for example) > 3. User switched devices and opens chat window with a friend in the second > client > 4. The client requests from the server last chat with this friend (we could > add some > parameters here, like last chat not older than 10 minutes for example) > 5. If there is no chat history the server returns an empty list, otherwise > the server > returns a list of chat messages > 6. The client displays messages received from the server and allows the user > to > continue conversation. The difference being that with Carbons you opt in to receiving all messages as they are sent. > I know of XEP-0136: Message Archiving which in theory could be used here as > well. > However, for once it is overkill for such a simple task and secondly the > protocol > requires a few packets exchange before the client can load last "collection" > which > increases traffic and delays. > > Artur
signature.asc
Description: This is a digitally signed message part