quickplay icon indicating copy to clipboard operation
quickplay copied to clipboard

False positive on Daily Reward streak reward

Open robere2 opened this issue 8 years ago • 7 comments

Users are told that they received a daily reward streak reward, even if they didn't. This is because messages are sent based off of the token property, when in fact what that says is whether the current token is a daily reward or a reward token.

robere2 avatar Apr 12 '18 00:04 robere2

There is a keeps value in the daily streak properties. Unclear if this is related. At the moment the best way to check seems to be checking if value is >= 8.

robere2 avatar Apr 13 '18 06:04 robere2

Resolved in commit https://github.com/bugfroggy/QuickplayPremium/commit/9adfbd5d2eeca4b7abde9feb7ae3845f4b2b4a27

robere2 avatar Apr 13 '18 06:04 robere2

Reopening as keeps seems to be what this is for, despite its relatively poor naming. Hypixel source code confirms this:

o.props.dailyStreak.keeps ? o.props.dailyStreak.token || o.setState({
                            score: o.state.score + 1,
                            streak: o.state.streak + 1,
                            highScore: Math.max(o.state.highScore, o.state.score + 1)
                        }) : o.setState({
                            score: 1,
                            streak: 1
                        })

robere2 avatar Apr 13 '18 08:04 robere2

Messages are now sent when keeps is false bugfroggy/QuickplayPremium@168ea6c

robere2 avatar Apr 13 '18 08:04 robere2

This is still a problem. keeps might not do what I thought? Sent a message in #announcements on Discord, asking for help.

robere2 avatar Apr 17 '18 22:04 robere2

Closed by commit robere2/QuickplayPremium@2ba8c38d44664ec06378499dfaa880322497265a

robere2 avatar Oct 28 '18 17:10 robere2

This issue keeps seeming to appear when I think I fixed it... will have to do some deeper research.

robere2 avatar Jul 23 '20 03:07 robere2