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

Fire TokensAdded / ZoneAdded when handling PutZoneMsg #3912

Conversation

kwvanderlinde
Copy link
Collaborator

@kwvanderlinde kwvanderlinde commented Apr 10, 2023

Requirements for Contributing a Bug Fix or Enhancement

  • Fill out the template below. Any pull request that does not include enough information to be reviewed in timely manner will result in a request for you to update the pull request
    and possibly closure of the pull request if it is not provided after this request.
  • After you create the pull request, all status checks must pass before a maintainer will review your contribution.

Identify the Bug or Feature request

Fixes #3908

Description of the Change

This fixes an error introduced in PR #3749. In ServerMessageHandler, we were firing TokensRemoved / ZoneRemoved where TokensAdded/ZoneAdded is expected. The analogous logic in ClientMessageHandler had this correct already.

In particular this was causing Lib:tokens to be removed from the library manager in cases such as cell type changes.

Possible Drawbacks

None

Documentation Notes

N/A

Release Notes

N/A (fixes a new bug)


This change is Reviewable

We were firing `TokensRemoved` / `ZoneRemoved`, which in particular causes Lib:tokens to be removed from the library
manager. They weren't being added back until another interaction required them.
@cwisniew cwisniew merged commit b8a3d46 into RPTools:develop Apr 12, 2023
@kwvanderlinde kwvanderlinde deleted the bugfix/3908-lib-tokens-are-removed-after-cell-type-change branch April 13, 2023 04:50
@cwisniew cwisniew added the bug label Apr 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: map cell change breaks lib tokens
2 participants