Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"New achievement" modal displaying for other users #13

Closed
Restartz opened this issue Apr 17, 2021 · 6 comments
Closed

"New achievement" modal displaying for other users #13

Restartz opened this issue Apr 17, 2021 · 6 comments
Labels
bug Something isn't working

Comments

@Restartz
Copy link

First of all, thanks for making this awesome plugin! :)

I did notice other users could get the "New achievement" modal that's actually meant for someone else when you visit someone's profile page.

steps to reproduce it

  1. User A gets an achievement but doesn't dismiss the modal.
  2. User B visits the profile page of user A.
  3. The modal will keep popping up for user B every time he visits user A's profile until user A actually clicks dismisses the modal.
@malago86 malago86 added the bug Something isn't working label Apr 18, 2021
@malago86
Copy link
Owner

I am trying to reproduce the bug but I can't!

I created a new user, got an achievement and while the modal is there, on another window with a different user I got to the first user's profile but it does not show any modal for me. I tried both adding an achievement manually and with a trigger (1 like).

What achievement trigger are you using?

@Restartz
Copy link
Author

Oh this is weird, I tested it multiple times yesterday and the problem was very consistent.
I did reset the forum in the meantime, and now I can't seem to reproduce it either.

Maybe the bug happened due to another plugin I installed, or maybe a certain configuration?
I guess for now it somehow solved itself :)
I'll let you know if I run into it again and can pinpoint it better.

Thanks for your help.

@malago86
Copy link
Owner

Interesting... I have no idea how you triggered it, but if you find out, please reopen this issue!

@Restartz
Copy link
Author

We've run into the same problem again.
It seems the missing key element was that both users need to have gotten the same achievement.

So the steps to reproduce should be as follows:

  1. User A and B get the same achievement.
  2. Only user B dismisses the "new achievement" model.
  3. User B then visits the profile page of user A.
  4. The modal will keep popping up for user B every time he visits user A's profile until user A actually dismisses the modal.

This seems to happen for both; manual and automatic achievements.

However for manual achievements the bug also seems to occur in topics that the other user has posted in (so also when user B visits a topic where user A has posted).

@malago86 malago86 reopened this Jul 22, 2021
@malago86
Copy link
Owner

malago86 commented Jul 22, 2021

I believe I fixed this issue (probably a few more at the same time). Please update to 0.4.3 and let me know if it does not work!

@Restartz
Copy link
Author

It works! Thanks! 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants