[guardian-dev] queue a message in ChatSecure when all accounts are offline?

Nathan of Guardian nathan at guardianproject.info
Wed Nov 26 09:04:34 EST 2014




On Tue, Nov 25, 2014, at 09:03 AM, Hans-Christoph Steiner wrote: 
> I'm currently working on fixing the handling of SEND/Share Intents when
> ChatSecure is offline.  The current behavior is to just show a blank,
> white
> screen.  That obviously leaves a lot to be desired.  Its easy to just
> throw an
> error in that case, but it would be great to let the user choose a
> contact to
> send to, then queue the message that will be sent next time ChatSecure is
> online.  I can do this with Google Voice or TextSecure, for example.
> 
> I vaguely remember something about queuing messages offline.  Any
> pointers on
> where to look for that?

In XMPPConnection there is a postpone queue if the connection is not
connected and you try to send a message.

https://github.com/guardianproject/ChatSecureAndroid/blob/master/src/info/guardianproject/otr/app/im/plugin/xmpp/XmppConnection.java#L304


More information about the Guardian-dev mailing list