-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix RealtimePresence#leave handling of PresenceMessage argument
RealtimePresence’s `enter*`, `update*` and `leave*` methods all advertise themselves as accepting a PresenceMessage instance instead of just a data object. This is the only way that ably-js supports passing message extras to these methods. However, `leave` does not handle a PresenceMessage argument properly; it ends up nesting the PresenceMessage’s top-level fields inside the payload’s `data` property. To fix this, we change the argument handling to match that used by `enter`. Resolves #1465.
- Loading branch information
1 parent
83b4516
commit dfe425c
Showing
2 changed files
with
53 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters