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

space: Fix clobbering presence data #100

Closed
wants to merge 1 commit into from
Closed

Conversation

lmars
Copy link
Member

@lmars lmars commented Aug 2, 2023

Before this commit, space.updateProfileData would call presence.update with just the updated profile data, removing the previous and current locations that might be set in the presence data.

This commit fixes the issue by introducing an updateSelf function which allows callers to mutate the member retrieved from getSelf and trigger a presence update which maintains unrelated fields within the resulting presence data.

Before this commit, space.updateProfileData would call presence.update
with just the updated profile data, removing the previous and current
locations that might be set in the presence data.

This commit fixes the issue by introducing an updateSelf function which
allows callers to mutate the member retrieved from getSelf and trigger a
presence update which maintains unrelated fields within the resulting
presence data.

Signed-off-by: Lewis Marshall <lewis.marshall@ably.com>
@lmars
Copy link
Member Author

lmars commented Aug 11, 2023

Superseded by changes in #101.

@lmars lmars closed this Aug 11, 2023
@lmars lmars deleted the fix-presence-update branch August 11, 2023 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant