Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: After computer has been suspended / put to sleep, notifications do not refresh until app restart #1054

Closed
nekohayo opened this issue Jul 2, 2024 · 1 comment · Fixed by #1063
Labels
bug Something isn't working

Comments

@nekohayo
Copy link
Collaborator

nekohayo commented Jul 2, 2024

Describe the bug

This is essentially the same as #136, but applied to the notifications counter in the sidebar and elsewhere.

Steps To Reproduce

  1. Run Tuba, read your notifications, resetting the count to zero.
  2. Switch to the Home timeline view
  3. Let the computer go to fully suspended standby sleep
  4. Be accidentally popular in your sleep
  5. Wake up the computer

Result: Tuba refreshes the home timeline, but does not refresh the notifications count in the sidebar, so you have no idea you received notifications, even if you do Ctrl+R to refresh. Only when you restart the app do the notifications counters suddenly update.

Logs and/or Screenshots

No response

Instance Backend

Mastodon

Operating System

Fedora 39

Package

Flatpak

Troubleshooting information

os: GNOME 46 (Flatpak runtime)
prefix: /app
flatpak: true
version: 0.8.1 (production)
gtk: 4.14.4 (4.14.4)
libadwaita: 1.5.1 (1.5.1)
libsoup: 3.4.4 (3.4.4)
libgtksourceview: 5.12.0 (5.12.0)

Additional Context

No response

@nekohayo nekohayo added the bug Something isn't working label Jul 2, 2024
@nekohayo nekohayo changed the title [Bug]: Notifications do not refresh until app restart when the computer has been suspended / put to sleep [Bug]: After computer has been suspended / put to sleep, notifications do not refresh until app restart Jul 2, 2024
@GeopJr
Copy link
Owner

GeopJr commented Jul 3, 2024

Self note: https://github.com/GeopJr/Tuba/blob/main/src/Services/Accounts/InstanceAccount.vala#L485

(still busy with exams)

Nice catch, also confirmation that the sleep issues have finally been fixed with the graceful recovery stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants