fix: show rewards early, replace later (#5948)

This commit is contained in:
nerix
2025-02-10 22:12:30 +01:00
committed by GitHub
parent 9527421bcd
commit 2b118c9aa2
6 changed files with 23 additions and 6 deletions
+1
View File
@@ -2135,6 +2135,7 @@ std::pair<MessagePtrMut, HighlightAlert> MessageBuilder::makeIrcMessage(
builder.appendChannelPointRewardMessage(*reward, channel->isMod(),
channel->isBroadcaster());
}
builder->flags.set(MessageFlag::RedeemedChannelPointReward);
}
builder.appendChannelName(channel);
+3 -3
View File
@@ -22,9 +22,9 @@ enum class MessageSinkTrait : uint8_t {
/// added to the global mentions channel when encountered.
AddMentionsToGlobalChannel = 1 << 0,
/// A channel-point redemption whose reward is not yet known should not be
/// added to this sink, but queued in the corresponding TwitchChannel
/// (`addQueuedRedemption`).
/// A channel-point redemption whose reward is not yet known should be
/// queued in the corresponding TwitchChannel (`addQueuedRedemption`) and
/// the message should be replaced later.
RequiresKnownChannelPointReward = 1 << 1,
};
using MessageSinkTraits = FlagsEnum<MessageSinkTrait>;