Version update check is optional. Removed reliance on web API. Fixed client reconnection due to redemptions.

This commit is contained in:
Tom
2025-01-14 03:48:02 +00:00
parent b74b1d70f3
commit 5fc1b5f942
4 changed files with 34 additions and 50 deletions

View File

@@ -87,12 +87,22 @@ namespace TwitchChatTTS.Twitch.Redemptions
_logger.Debug($"Added redeemable action to redemption manager [action name: {action.Name}]");
}
else
_logger.Debug($"Redemption manager already has this action stored [action name: {action.Name}]");
{
_actions[action.Name] = action;
_logger.Debug($"Updated redeemable action to redemption manager [action name: {action.Name}]");
}
}
public void Add(Redemption redemption)
{
_redemptions.Add(redemption.Id, redemption);
if (!_redemptions.ContainsKey(redemption.Id))
{
_redemptions.Add(redemption.Id, redemption);
_logger.Debug($"Added redemption to redemption manager [redemption id: {redemption.Id}]");
} else {
_redemptions[redemption.Id] = redemption;
_logger.Debug($"Updated redemption to redemption manager [redemption id: {redemption.Id}]");
}
Add(redemption.RedemptionId, redemption);
}