message cache was initialized when logging-in so it was basically useless
it was causing a bug when switching account and getting a contact request
from the same user in 2 accounts without killing the app because the cache
was not reset and the subsequent contact requests were ignored
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
* Do not try to reconnect when offline
* If online, but mailserver is disconnected, show notification
* Tap on notification starts reconnecting process
Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
previous naming was confusing because it actually sends using
the symkey of each chat whose simkey is passed as an argument
Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
- Fetch discovery topic from offline inboxing
- Send ContactRequestResponse on discovery channel with new-key message
for recovery of invited contacts
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
* Add "connecting" mailserver status
* Send push notification when "envelope.sent" signal received
Signed-off-by: Dmitry Novotochinov <trybeee@gmail.com>
* Set message status based on signal from Go
* Set status as "not-sent" on app start if no signal received
Signed-off-by: Dmitry Novotochinov <trybeee@gmail.com>
I have extended and modified the current algorithm for message ordering
so that it applies for group and public chats alike.
We use Lamport timestamps but we prefix the unix timestamp, which should
maximize the chances of the message being seen on the top of the chat.
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>