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

Hans-Christoph Steiner hans at guardianproject.info
Wed Nov 26 10:46:24 EST 2014


Nathan of Guardian:
> 
> 
> 
> 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,
>> whitesendMessageAsync
>> 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

Is there a pre-OTR message queue?

So I have already addressed some of the blank white screen scenarios, now I'd
love to be able to queue up some content to be transfered once an OTR session
is established.  It seems to me that using something like
XmppChatSessionManager.sendMessageAsync() to queue a message (or lower level)
will guarantee that the message is never OTR encrypted.

.hc


-- 
PGP fingerprint: 5E61 C878 0F86 295C E17D  8677 9F0F E587 374B BE81


More information about the Guardian-dev mailing list