Skip to content

Conversation

@schrockwell
Copy link

@schrockwell schrockwell commented May 24, 2024

To the best of my knowledge, Phoenix.Tracker.update/5 should not be used to update presence metadata for processes that are on a separate node. If you do this, Bad Things will happen. Ask me how I know.

So, this PR adds a safeguard against this.

Returning {:error, :nopresence} might also be acceptable here for backwards-compatibility, at the cost of an error reason that isn't really accurate.

I did my best to implement the test case, but I couldn't follow 100% what is going on, so there may be a better way to set it up.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants