Page MenuHomePhabricator

[lib] Refactor useLogOut to auto-detect logout flow
Needs ReviewPublic

Authored by bartek on Fri, Dec 20, 3:18 AM.

Details

Reviewers
tomek
kamil
Summary

Address 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

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage