fix: don't use same websocket connection for multiple accounts (#6348)

This commit is contained in:
pajlada
2025-08-10 11:57:14 +02:00
committed by GitHub
parent 1c9090d350
commit 4b6ba68489
12 changed files with 180 additions and 16 deletions
@@ -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