mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
Add debug output to channel point reward callbacks (#4142)
This commit is contained in:
parent
46cdb89498
commit
c714f15ce9
|
@ -454,8 +454,14 @@ void IrcMessageHandler::addMessage(Communi::IrcMessage *_message,
|
||||||
{
|
{
|
||||||
// Need to wait for pubsub reward notification
|
// Need to wait for pubsub reward notification
|
||||||
auto clone = _message->clone();
|
auto clone = _message->clone();
|
||||||
|
qCDebug(chatterinoTwitch) << "TwitchChannel reward added ADD "
|
||||||
|
"callback since reward is not known:"
|
||||||
|
<< rewardId;
|
||||||
channel->channelPointRewardAdded.connect(
|
channel->channelPointRewardAdded.connect(
|
||||||
[=, &server](ChannelPointReward reward) {
|
[=, &server](ChannelPointReward reward) {
|
||||||
|
qCDebug(chatterinoTwitch)
|
||||||
|
<< "TwitchChannel reward added callback:" << reward.id
|
||||||
|
<< "-" << rewardId;
|
||||||
if (reward.id == rewardId)
|
if (reward.id == rewardId)
|
||||||
{
|
{
|
||||||
this->addMessage(clone, target, content_, server, isSub,
|
this->addMessage(clone, target, content_, server, isSub,
|
||||||
|
|
|
@ -267,6 +267,10 @@ void TwitchChannel::addChannelPointReward(const ChannelPointReward &reward)
|
||||||
}
|
}
|
||||||
if (result)
|
if (result)
|
||||||
{
|
{
|
||||||
|
qCDebug(chatterinoTwitch)
|
||||||
|
<< "[TwitchChannel" << this->getName()
|
||||||
|
<< "] Channel point reward added:" << reward.id << ","
|
||||||
|
<< reward.title << "," << reward.isUserInputRequired;
|
||||||
this->channelPointRewardAdded.invoke(reward);
|
this->channelPointRewardAdded.invoke(reward);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue