mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 14:10:53 +00:00
Misc
This commit is contained in:
@@ -795,15 +795,14 @@ namespace ArchiSteamFarm {
|
||||
|
||||
JobID = jobID;
|
||||
|
||||
if (msg.notifications == null) {
|
||||
// We might get null body here, and that means there are no notifications related to trading
|
||||
Notifications = new Dictionary<EUserNotification, uint>(1) { { EUserNotification.Trading, 0 } };
|
||||
// We might get null body here, and that means there are no notifications related to trading
|
||||
// TODO: Check if this workaround is still needed
|
||||
Notifications = new Dictionary<EUserNotification, uint> { { EUserNotification.Trading, 0 } };
|
||||
|
||||
if (msg.notifications == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
Notifications = new Dictionary<EUserNotification, uint>(msg.notifications.Count);
|
||||
|
||||
foreach (CMsgClientUserNotifications.Notification notification in msg.notifications) {
|
||||
EUserNotification type = (EUserNotification) notification.user_notification_type;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user