mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-03-21 17:34:57 -05:00
Fix typos
This commit is contained in:
parent
b52738881f
commit
0643b250e1
|
|
@ -191,7 +191,7 @@ static obs_data_t *copyData(const OBSData &data)
|
|||
return obs_data_create_from_json(json);
|
||||
}
|
||||
|
||||
std::string EventSub::AddEventSubscribtion(std::shared_ptr<TwitchToken> token,
|
||||
std::string EventSub::AddEventSubscription(std::shared_ptr<TwitchToken> token,
|
||||
Subscription subscription)
|
||||
{
|
||||
auto eventSub = token->GetEventSub();
|
||||
|
|
@ -341,7 +341,7 @@ void EventSub::OnMessage(connection_hdl, EventSubWSClient::message_ptr message)
|
|||
} else if (messageType == "session_reconnect") {
|
||||
HandleReconnect(payloadJson);
|
||||
} else if (messageType == "revocation") {
|
||||
HanldeRevocation(payloadJson);
|
||||
HandleRevocation(payloadJson);
|
||||
} else {
|
||||
vblog(LOG_INFO, "ignoring message of unknown type '%s'",
|
||||
messageType.c_str());
|
||||
|
|
@ -387,7 +387,7 @@ void EventSub::HandleReconnect(obs_data_t *data)
|
|||
"Twitch EventSub reconnecting", ec);
|
||||
}
|
||||
|
||||
void EventSub::HanldeRevocation(obs_data_t *data)
|
||||
void EventSub::HandleRevocation(obs_data_t *data)
|
||||
{
|
||||
OBSDataAutoRelease subscription =
|
||||
obs_data_get_obj(data, "subscription");
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ public:
|
|||
void Disconnect();
|
||||
[[nodiscard]] EventSubMessageBuffer RegisterForEvents();
|
||||
bool SubscriptionIsActive(const std::string &id);
|
||||
static std::string AddEventSubscribtion(std::shared_ptr<TwitchToken>,
|
||||
static std::string AddEventSubscription(std::shared_ptr<TwitchToken>,
|
||||
Subscription);
|
||||
void ClearActiveSubscriptions();
|
||||
|
||||
|
|
@ -74,7 +74,7 @@ private:
|
|||
void HandleKeepAlive() const;
|
||||
void HandleNotification(obs_data_t *);
|
||||
void HandleReconnect(obs_data_t *);
|
||||
void HanldeRevocation(obs_data_t *);
|
||||
void HandleRevocation(obs_data_t *);
|
||||
|
||||
void RegisterInstance();
|
||||
void UnregisterInstance();
|
||||
|
|
|
|||
|
|
@ -1008,7 +1008,7 @@ waitForSubscription(const std::shared_ptr<TwitchToken> &token,
|
|||
const Subscription &subscription)
|
||||
{
|
||||
return std::async(std::launch::async, [token, subscription]() {
|
||||
auto id = EventSub::AddEventSubscribtion(token, subscription);
|
||||
auto id = EventSub::AddEventSubscription(token, subscription);
|
||||
return id;
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user