fix(7TV): ignore entitlement.reset (#5685)

This commit is contained in:
nerix 2024-11-02 22:32:49 +01:00 committed by GitHub
parent db8047ea7b
commit 4b725c4d6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 8 additions and 0 deletions

View file

@ -118,6 +118,7 @@
- Dev: Refactored IRC message building. (#5663)
- Dev: Fixed some compiler warnings. (#5672)
- Dev: Unified parsing of historic and live IRC messages. (#5678)
- Dev: 7TV's `entitlement.reset` is now explicitly ignored. (#5685)
## 2.5.1

View file

@ -233,6 +233,10 @@ void SeventvEventAPI::handleDispatch(const Dispatch &dispatch)
}
}
break;
case SubscriptionType::ResetEntitlement: {
// unhandled (not clear what we'd do here yet)
}
break;
default: {
qCDebug(chatterinoSeventvEventAPI)
<< "Unknown subscription type:"

View file

@ -27,6 +27,7 @@ enum class SubscriptionType {
CreateEntitlement,
UpdateEntitlement,
DeleteEntitlement,
ResetEntitlement,
INVALID,
};
@ -119,6 +120,8 @@ constexpr magic_enum::customize::customize_t magic_enum::customize::enum_name<
return "entitlement.update";
case SubscriptionType::DeleteEntitlement:
return "entitlement.delete";
case SubscriptionType::ResetEntitlement:
return "entitlement.reset";
default:
return default_tag;