fix: don't use same websocket connection for multiple accounts (#6348)
This commit is contained in:
@@ -471,6 +471,8 @@ CommandController::CommandController(const Paths &paths)
|
||||
this->registerCommand("/debug-invalidate-buffers",
|
||||
&commands::invalidateBuffers);
|
||||
|
||||
this->registerCommand("/debug-eventsub", &commands::eventsub);
|
||||
|
||||
this->registerCommand("/debug-test", &commands::debugTest);
|
||||
|
||||
this->registerCommand("/shield", &commands::shieldModeOn);
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "messages/Message.hpp"
|
||||
#include "messages/MessageBuilder.hpp"
|
||||
#include "messages/MessageElement.hpp"
|
||||
#include "providers/twitch/eventsub/Controller.hpp"
|
||||
#include "providers/twitch/TwitchChannel.hpp"
|
||||
#include "providers/twitch/TwitchIrcServer.hpp"
|
||||
#include "singletons/Theme.hpp"
|
||||
@@ -158,6 +159,12 @@ QString invalidateBuffers(const CommandContext & /*ctx*/)
|
||||
return {};
|
||||
}
|
||||
|
||||
QString eventsub(const CommandContext & /*ctx*/)
|
||||
{
|
||||
getApp()->getEventSub()->debug();
|
||||
return {};
|
||||
}
|
||||
|
||||
QString debugTest(const CommandContext &ctx)
|
||||
{
|
||||
if (!ctx.channel)
|
||||
|
||||
@@ -28,6 +28,8 @@ QString incrementImageGeneration(const CommandContext &ctx);
|
||||
|
||||
QString invalidateBuffers(const CommandContext &ctx);
|
||||
|
||||
QString eventsub(const CommandContext &ctx);
|
||||
|
||||
QString debugTest(const CommandContext &ctx);
|
||||
|
||||
} // namespace chatterino::commands
|
||||
|
||||
Reference in New Issue
Block a user