Swiftcord icon indicating copy to clipboard operation
Swiftcord copied to clipboard

[Bug]: Badge duplication & overlap

Open char-ptr opened this issue 3 years ago • 4 comments

Describe the bug

For some reason my nitro badge is being duplicated and overlapped ontop of my hypesquad badge. idk if this will occur with other badges or if it happens with a set amount etc. To Reproduce

Open a users profile who has HS balance & nitro badges

Expected behavior No duplication and or overlap Screenshots Swiftcord: image

standard client: image

Logs

Additional context

char-ptr avatar Jul 16 '22 18:07 char-ptr

@pozm Really sorry for not reading this issue earlier! Does this issue happen with al users with nitro and a hype squad badge, or only this particular user/combination of badges?

PS: I usually respond way faster if you ping me in the Swiftcord discord server :)

cryptoAlgorithm avatar Jul 28 '22 09:07 cryptoAlgorithm

No problems, everyone is busy.

I've looked into it afterwards and it seems like nitro (and booster) badges only show up for the account currently logged in. So i can't really nail down which badge is actually causing it cause it shows up for no one else lol. It may be worth opening another issue about the issue i've came across though, as if you want to have 1:1 parity with std client then it will be needed.

Thank you

char-ptr avatar Jul 28 '22 09:07 char-ptr

Right. The nitro issue is something I was trying to fix, but couldn't figure out the API responsible for returning the nitro status of a user (the premium_type for other users is always nil). I unfortunately don't have nitro, so I'll most probably work with one of my contributors to squash this bug. (@Candygoblen123) Thanks for this report!

cryptoAlgorithm avatar Jul 28 '22 09:07 cryptoAlgorithm

@Candygoblen123 Could you take a look at this when possible? Since you have nitro, you might be able to repro this.

cryptoAlgorithm avatar Aug 02 '22 14:08 cryptoAlgorithm

@pozm, I figured out the cause of this. I'll see if I can fix it, but it doesn't seem like an easy fix.

cryptoAlgorithm avatar Sep 03 '22 05:09 cryptoAlgorithm

@pozm This is now fixed. You can grab the latest nightly version to test it out, and as always, thanks for using Swiftcord :) Screenshot 2022-09-03 at 3 04 36 PM

cryptoAlgorithm avatar Sep 03 '22 07:09 cryptoAlgorithm