Fix mod, unmod, vip, unvip buttons in User Card (#4387)

This commit is contained in:
pajlada
2023-02-16 21:43:37 +01:00
committed by GitHub
parent 28bdf440fd
commit 6380fb5198
2 changed files with 17 additions and 4 deletions
+1
View File
@@ -16,6 +16,7 @@
- Minor: Added support for HTTP and Socks5 proxies through environment variables. (#4321)
- Minor: Added crashpad to capture crashes on Windows locally. See PR for build/crash analysis instructions. (#4351)
- Bugfix: Fixed User Card moderation actions not working after Twitch IRC chat command deprecation. (#4378)
- Bugfix: Fixed User Card broadcaster actions (mod, unmod, vip, unvip) not working after Twitch IRC chat command deprecation. (#4387)
- 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 CTRL + C not working in reply thread popups. (#4209)
+16 -4
View File
@@ -419,16 +419,28 @@ UserInfoPopup::UserInfoPopup(bool closeAutomatically, QWidget *parent,
});
QObject::connect(mod.getElement(), &Button::leftClicked, [this] {
this->underlyingChannel_->sendMessage("/mod " + this->userName_);
QString value = "/mod " + this->userName_;
value = getApp()->commands->execCommand(
value, this->underlyingChannel_, false);
this->underlyingChannel_->sendMessage(value);
});
QObject::connect(unmod.getElement(), &Button::leftClicked, [this] {
this->underlyingChannel_->sendMessage("/unmod " + this->userName_);
QString value = "/unmod " + this->userName_;
value = getApp()->commands->execCommand(
value, this->underlyingChannel_, false);
this->underlyingChannel_->sendMessage(value);
});
QObject::connect(vip.getElement(), &Button::leftClicked, [this] {
this->underlyingChannel_->sendMessage("/vip " + this->userName_);
QString value = "/vip " + this->userName_;
value = getApp()->commands->execCommand(
value, this->underlyingChannel_, false);
this->underlyingChannel_->sendMessage(value);
});
QObject::connect(unvip.getElement(), &Button::leftClicked, [this] {
this->underlyingChannel_->sendMessage("/unvip " + this->userName_);
QString value = "/unvip " + this->userName_;
value = getApp()->commands->execCommand(
value, this->underlyingChannel_, false);
this->underlyingChannel_->sendMessage(value);
});
// userstate