diff --git a/src/providers/twitch/IrcMessageHandler.cpp b/src/providers/twitch/IrcMessageHandler.cpp index 7b1246bb3..922b8cf4e 100644 --- a/src/providers/twitch/IrcMessageHandler.cpp +++ b/src/providers/twitch/IrcMessageHandler.cpp @@ -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, diff --git a/src/providers/twitch/TwitchChannel.cpp b/src/providers/twitch/TwitchChannel.cpp index e0cd7cf58..5b1a3a75c 100644 --- a/src/providers/twitch/TwitchChannel.cpp +++ b/src/providers/twitch/TwitchChannel.cpp @@ -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); } }