diff --git a/ArchiSteamFarm/ArchiHandler.cs b/ArchiSteamFarm/ArchiHandler.cs index af73f08ab..57b67711a 100644 --- a/ArchiSteamFarm/ArchiHandler.cs +++ b/ArchiSteamFarm/ArchiHandler.cs @@ -75,8 +75,11 @@ namespace ArchiSteamFarm { return; } - Notifications = new List(1); - Notifications.Add(new Notification { NotificationType = Notification.ENotificationType.Items }); + if (msg.count_new_items > 0) { + Notifications = new List(1) { + new Notification { NotificationType = Notification.ENotificationType.Items } + }; + } } } diff --git a/ArchiSteamFarm/ArchiWebHandler.cs b/ArchiSteamFarm/ArchiWebHandler.cs index 8ff2d7fa6..a42c1d101 100644 --- a/ArchiSteamFarm/ArchiWebHandler.cs +++ b/ArchiSteamFarm/ArchiWebHandler.cs @@ -38,7 +38,7 @@ namespace ArchiSteamFarm { private readonly Bot Bot; private readonly string ApiKey; - private readonly Dictionary Cookie = new Dictionary(3); + private readonly Dictionary Cookie = new Dictionary(4); private ulong SteamID; @@ -109,6 +109,9 @@ namespace ArchiSteamFarm { Cookie["steamLogin"] = steamLogin; Cookie["steamLoginSecure"] = steamLoginSecure; + // The below is used for display purposes only + Cookie["webTradeEligibility"] = "{\"allowed\":0,\"reason\":0,\"allowed_at_time\":0,\"steamguard_required_days\":0,\"sales_this_year\":0,\"max_sales_per_year\":0,\"forms_requested\":0}"; + await UnlockParentalAccount(parentalPin).ConfigureAwait(false); return true; } @@ -426,7 +429,7 @@ namespace ArchiSteamFarm { HttpResponseMessage response = null; for (byte i = 0; i < WebBrowser.MaxRetries && response == null; i++) { - response = await WebBrowser.UrlGet("https://steamcommunity.com/profiles/" + SteamID + "/inventory/", Cookie).ConfigureAwait(false); + response = await WebBrowser.UrlGet("https://steamcommunity.com/profiles/" + SteamID + "/inventory", Cookie).ConfigureAwait(false); } if (response == null) {