diff --git a/src/Views/Notifications.vala b/src/Views/Notifications.vala index 0829f6ce..5c864156 100644 --- a/src/Views/Notifications.vala +++ b/src/Views/Notifications.vala @@ -70,6 +70,14 @@ public class Tuba.Views.Notifications : Views.Timeline, AccountHolder, Streamabl settings.notify["dim-trivial-notifications"].connect (settings_updated); settings_updated (); + + app.notify["is-online"].connect (on_network_change); + } + + private void on_network_change () { + if (app.is_online && account != null && account.unread_count > 0) { + app.refresh (); + } } private void settings_updated () {