-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Defined the `LocalDevice` struct, which contains the info about the client's device. - Many device methods now return a LocalDevice value constructed from the server response. - Use the last `LocalDevice` returned from the server to cache the capabilities. This improves on the previous system, since it differentiates between no known info and the empty list. - One drawback is that this will always be unset when users migrate, so they may hit the server an extra time when `ensure_capabilities` is first called.
- Loading branch information
Showing
8 changed files
with
163 additions
and
86 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
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
Oops, something went wrong.