mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Fix User Card moderation actions not using Helix (#4378)
This commit is contained in:
parent
a3189baf94
commit
f317d4c99b
|
@ -16,6 +16,7 @@
|
||||||
- Minor: Remove sending part of the multipart emoji workaround (#4361)
|
- Minor: Remove sending part of the multipart emoji workaround (#4361)
|
||||||
- Minor: Added crashpad to capture crashes on Windows locally. See PR for build/crash analysis instructions. (#4351)
|
- Minor: Added crashpad to capture crashes on Windows locally. See PR for build/crash analysis instructions. (#4351)
|
||||||
- Minor: Added channel name to /mentions log entries (#4371)
|
- Minor: Added channel name to /mentions log entries (#4371)
|
||||||
|
- Bugfix: Fixed User Card moderation actions not working after Twitch IRC chat command deprecation. (#4378)
|
||||||
- Bugfix: Fixed crash that would occur when performing certain actions after removing all tabs. (#4271)
|
- Bugfix: Fixed crash that would occur when performing certain actions after removing all tabs. (#4271)
|
||||||
- Bugfix: Fixed highlight sounds not reloading on change properly. (#4194)
|
- Bugfix: Fixed highlight sounds not reloading on change properly. (#4194)
|
||||||
- Bugfix: Fixed CTRL + C not working in reply thread popups. (#4209)
|
- Bugfix: Fixed CTRL + C not working in reply thread popups. (#4209)
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
#include "common/NetworkRequest.hpp"
|
#include "common/NetworkRequest.hpp"
|
||||||
#include "common/QLogging.hpp"
|
#include "common/QLogging.hpp"
|
||||||
#include "controllers/accounts/AccountController.hpp"
|
#include "controllers/accounts/AccountController.hpp"
|
||||||
|
#include "controllers/commands/CommandController.hpp"
|
||||||
#include "controllers/highlights/HighlightBlacklistUser.hpp"
|
#include "controllers/highlights/HighlightBlacklistUser.hpp"
|
||||||
#include "controllers/hotkeys/HotkeyController.hpp"
|
#include "controllers/hotkeys/HotkeyController.hpp"
|
||||||
#include "messages/Message.hpp"
|
#include "messages/Message.hpp"
|
||||||
|
@ -223,6 +224,10 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically, QWidget *parent,
|
||||||
.arg(this->userName_)
|
.arg(this->userName_)
|
||||||
.arg(calculateTimeoutDuration(button));
|
.arg(calculateTimeoutDuration(button));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
msg = getApp()->commands->execCommand(
|
||||||
|
msg, this->underlyingChannel_, false);
|
||||||
|
|
||||||
this->underlyingChannel_->sendMessage(msg);
|
this->underlyingChannel_->sendMessage(msg);
|
||||||
return "";
|
return "";
|
||||||
}},
|
}},
|
||||||
|
@ -478,25 +483,35 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically, QWidget *parent,
|
||||||
case TimeoutWidget::Ban: {
|
case TimeoutWidget::Ban: {
|
||||||
if (this->underlyingChannel_)
|
if (this->underlyingChannel_)
|
||||||
{
|
{
|
||||||
this->underlyingChannel_->sendMessage("/ban " +
|
QString value = "/ban " + this->userName_;
|
||||||
this->userName_);
|
value = getApp()->commands->execCommand(
|
||||||
|
value, this->underlyingChannel_, false);
|
||||||
|
|
||||||
|
this->underlyingChannel_->sendMessage(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case TimeoutWidget::Unban: {
|
case TimeoutWidget::Unban: {
|
||||||
if (this->underlyingChannel_)
|
if (this->underlyingChannel_)
|
||||||
{
|
{
|
||||||
this->underlyingChannel_->sendMessage("/unban " +
|
QString value = "/unban " + this->userName_;
|
||||||
this->userName_);
|
value = getApp()->commands->execCommand(
|
||||||
|
value, this->underlyingChannel_, false);
|
||||||
|
|
||||||
|
this->underlyingChannel_->sendMessage(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case TimeoutWidget::Timeout: {
|
case TimeoutWidget::Timeout: {
|
||||||
if (this->underlyingChannel_)
|
if (this->underlyingChannel_)
|
||||||
{
|
{
|
||||||
this->underlyingChannel_->sendMessage(
|
QString value = "/timeout " + this->userName_ + " " +
|
||||||
"/timeout " + this->userName_ + " " +
|
QString::number(arg);
|
||||||
QString::number(arg));
|
|
||||||
|
value = getApp()->commands->execCommand(
|
||||||
|
value, this->underlyingChannel_, false);
|
||||||
|
|
||||||
|
this->underlyingChannel_->sendMessage(value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue