Skip to content

ignore stale `users/show` responses - fixes #741

dakkar requested to merge feature/741-safer-login-checks into develop

What does this PR do?

Simplest fix: if a response comes in that does not match the current username, ignore it. Since the username changed, another request has been sent already, and the response will arrive at some point.

The "in case of error" code is a bit annoying because misskeyApi doesn't pass us any detail apart from the error code, so we now close over the username we requested, and compare against that.

Contribution Guidelines By submitting this merge request, you agree to follow our Contribution Guidelines

  • I agree to follow this project's Contribution Guidelines
  • I have made sure to test this pull request

Merge request reports