fix: show rewards early, replace later (#5948)
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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>;
|
||||
|
||||
Reference in New Issue
Block a user