-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[lib] Refactor useLogOut to auto-detect logout flow
Summary: Address [[ https://linear.app/comm/issue/ENG-10015/decide-how-to-handle-v1-uselogout-calls-for-signed-device-list-users | ENG-10015 ]] - Renamed `useLogOut` to `useBaseLogOut` - Made options required - Created new `useLogOut` without arguments, which automatically chooses correct logout flow basing on `usingRestoreFlow` and `isPrimaryDevice` Test Plan: For both old- and new-flow account, checked that correct logout protocol is chosen when: - Pressing logout button - Triggering a crash Reviewers: tomek, kamil Reviewed By: kamil Subscribers: ashoat Differential Revision: https://phab.comm.dev/D14179
- Loading branch information
Showing
4 changed files
with
60 additions
and
19 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
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