From fab639a8fba59aa8753cd95fd8fa875bf611e810 Mon Sep 17 00:00:00 2001 From: Anna Date: Wed, 20 Mar 2024 20:14:02 -0400 Subject: [PATCH] fix: don't use hardexpiry --- Server.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Server.cs b/Server.cs index c65970e..d0a0f85 100644 --- a/Server.cs +++ b/Server.cs @@ -188,7 +188,7 @@ await this.Plugin.AddDownloadAsync(new DownloadTask( ErrorHelper.Handle(ex, "Error opening prompt window"); notif.Type = NotificationType.Error; notif.Content = "Error opening installer prompt."; - notif.HardExpiry = DateTime.UtcNow + TimeSpan.FromSeconds(5); + notif.InitialDuration = TimeSpan.FromSeconds(5); } }); @@ -270,7 +270,7 @@ await this.Plugin.AddDownloadAsync(new DownloadTask( ErrorHelper.Handle(ex, "Error opening prompt window"); notif.Type = NotificationType.Error; notif.Content = "Error opening installer prompt."; - notif.HardExpiry = DateTime.UtcNow + TimeSpan.FromSeconds(5); + notif.InitialDuration = TimeSpan.FromSeconds(5); } }); @@ -348,7 +348,7 @@ await this.Plugin.AddDownloadAsync(new DownloadTask( ErrorHelper.Handle(ex, "Error opening prompt window"); notif.Type = NotificationType.Error; notif.Content = "Error opening installer prompt."; - notif.HardExpiry = DateTime.UtcNow + TimeSpan.FromSeconds(5); + notif.InitialDuration = TimeSpan.FromSeconds(5); } });