Skip to content

Commit

Permalink
chore: reformat
Browse files Browse the repository at this point in the history
  • Loading branch information
iProdigy committed Nov 6, 2023
1 parent 61bdbf2 commit d7e248f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 12 deletions.
22 changes: 11 additions & 11 deletions src/providers/twitch/TwitchChannel.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -386,17 +386,17 @@ void TwitchChannel::addChannelPointReward(const ChannelPointReward &reward)

auto *server = getApp()->twitch;
auto it = std::remove_if(
this->waitingRedemptions_.begin(), this->waitingRedemptions_.end(),
[&](const QueuedRedemption &msg) {
if (reward.id == msg.rewardID)
{
IrcMessageHandler::instance().addMessage(
msg.message.get(), "#" + channelName,
msg.originalContent, *server, false, false);
return true;
}
return false;
});
this->waitingRedemptions_.begin(), this->waitingRedemptions_.end(),
[&](const QueuedRedemption &msg) {
if (reward.id == msg.rewardID)
{
IrcMessageHandler::instance().addMessage(
msg.message.get(), "#" + channelName,
msg.originalContent, *server, false, false);
return true;
}
return false;
});
this->waitingRedemptions_.erase(it, this->waitingRedemptions_.end());
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/providers/twitch/TwitchChannel.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,8 @@ class TwitchChannel final : public Channel, public ChannelChatters
badgeSets_; // "subscribers": { "0": ... "3": ... "6": ...
UniqueAccess<std::vector<CheerEmoteSet>> cheerEmoteSets_;
UniqueAccess<std::map<QString, ChannelPointReward>> channelPointRewards_;
boost::circular_buffer_space_optimized<QueuedRedemption> waitingRedemptions_;
boost::circular_buffer_space_optimized<QueuedRedemption>
waitingRedemptions_;

bool mod_ = false;
bool vip_ = false;
Expand Down

0 comments on commit d7e248f

Please sign in to comment.