Skip to content

Commit

Permalink
feat(Timeline): do not use base status for pagination errors (#591)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeopJr authored Oct 15, 2023
1 parent a3b3323 commit 403f4dd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Views/Timeline.vala
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,17 @@ public class Tuba.Views.Timeline : AccountHolder, Streamable, Views.ContentBase
return GLib.Source.REMOVE;
}

public override void on_error (int32 code, string reason) {
if (base_status == null) {
warning (@"Error while refreshing $label: $code $reason");

var dlg = app.inform (_("Network Error"), reason);
dlg.present ();
} else {
base.on_error (code, reason);
}
}

public virtual void on_refresh () {
#if !USE_LISTVIEW
entity_queue = {};
Expand Down

0 comments on commit 403f4dd

Please sign in to comment.