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
|
||||
auto clone = _message->clone();
|
||||
qCDebug(chatterinoTwitch) << "TwitchChannel reward added ADD "
|
||||
"callback since reward is not known:"
|
||||
<< rewardId;
|
||||
channel->channelPointRewardAdded.connect(
|
||||
[=, &server](ChannelPointReward reward) {
|
||||
qCDebug(chatterinoTwitch)
|
||||
<< "TwitchChannel reward added callback:" << reward.id
|
||||
<< "-" << rewardId;
|
||||
if (reward.id == rewardId)
|
||||
{
|
||||
this->addMessage(clone, target, content_, server, isSub,
|
||||
|
|
|
@ -267,6 +267,10 @@ void TwitchChannel::addChannelPointReward(const ChannelPointReward &reward)
|
|||
}
|
||||
if (result)
|
||||
{
|
||||
qCDebug(chatterinoTwitch)
|
||||
<< "[TwitchChannel" << this->getName()
|
||||
<< "] Channel point reward added:" << reward.id << ","
|
||||
<< reward.title << "," << reward.isUserInputRequired;
|
||||
this->channelPointRewardAdded.invoke(reward);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue