Version update check is optional. Removed reliance on web API. Fixed client reconnection due to redemptions.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user