SMACKS resume fails and MAM query fails, too
Please first check if another issue has been opened for your problem
- OS: Linux
- Gajim version: 1.1.3+b63dd2ed
- GTK version: GTK+ Version: 3.22.11
- Python-nbxmpp version: 0.6.10
Steps to reproduce the problem
- Use gajim normally
- Put laptop in suspend to ram state
- Wake it up later without network
- Restore networking 1-2 minutes later
Resume active smacks session (but this is never tried). If not smacks resuming or the resume failed: retrieve messages since last received one from mam:2
No smacks resume and mam requests only for muc (one request per muc), but not for single chat.
I could not reproduce the issue by blocking network access, don't know what caused smack resume to not being tried (maybe it connected but network went away in between while authenticating and that's why it didn't try to resume later).
But I could reproduce the mam behaviour by blocking gajim's network access, closing the c2s stream on the server, sending some messages to the contact and then releasing gajim's network blocking again. Nothing gets retrieved via mam.