From 403f4ddf6d3f4891f3d02a8a967a18ff81bf41d5 Mon Sep 17 00:00:00 2001 From: Evan Paterakis Date: Mon, 16 Oct 2023 00:30:29 +0300 Subject: [PATCH] feat(Timeline): do not use base status for pagination errors (#591) --- src/Views/Timeline.vala | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/Views/Timeline.vala b/src/Views/Timeline.vala index 6dc8a1d9e..d4cb42d12 100644 --- a/src/Views/Timeline.vala +++ b/src/Views/Timeline.vala @@ -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 = {};