Sleep causes new messages to not appear until application restart
Description
Upon awaking from deep sleep, NeoChat does not show new messages sent while asleep, and does not successfully mark messages as read until the application is closed and restarted entirely.
Steps to reproduce
- Open NeoChat (and ideally have at least one unread message)
- Put the computer into sleep mode (in my case, S2 Deep sleep).
- Wake the computer (in my case when this issue happens it has been asleep for a few hours or overnight).
What is the current bug behavior?
No new messages appear, the message count indicator has not changed.
- Upon restarting NeoChat the message indicator increases to reflect messages sent while asleep, and messages that weren't visible in rooms are now present and loading in.
In this state where new messages aren't loading, I can visit a room and any previously unseen messages do not get marked as seen. Further, clicking on the room settings and clicking "Mark as Read" does not have any effect.
What is the expected correct behavior?
Upon awaking, if any messages were sent while asleep, the indicator should successfully update & when viewing a room, the new messages should be able to be seen. Setting messages as read should be functioning.
Relevant logs and/or screenshots
I don't currently have any logs regarding this, if there's any that would be useful, please let me know and how to get them, I'll add these to the report.
Possible fixes
I'm not familiar with this code base yet or sleep on linux, so I'm not sure what would cause this or where to start on a fix.
System/Matrix Information
- Distribution / Platform: Manjaro Linux 21.2.1
- KDE Plasma Version: 5.23.4
- KDE Frameworks Version: 5.89.0
- Qt Version: 5.15.2
- NeoChat version: 21.12
- Quotient version: libquotient 0.6.11-1
- Matrix server: kde.org
Notes
Please let me know if there is any further needed info for this, I will be happy to provide it. If I find a way to instantly reproduce it, such as running a particular command, waking the computer and having the issue, I will also update the story.