Page MenuHomePhabricator

[lib] Clear enabled apps on logout
ClosedPublic

Authored by tomek on Aug 16 2022, 5:09 AM.
Tags
None
Referenced Files
F2138560: D4848.diff
Fri, Jun 28, 11:16 PM
Unknown Object (File)
Wed, Jun 26, 11:45 AM
Unknown Object (File)
Tue, Jun 11, 5:26 PM
Unknown Object (File)
Wed, Jun 5, 12:31 AM
Unknown Object (File)
May 27 2024, 1:51 AM
Unknown Object (File)
May 27 2024, 1:51 AM
Unknown Object (File)
May 27 2024, 1:51 AM
Unknown Object (File)
May 27 2024, 1:46 AM

Details

Summary

When a user is logged out we should clear enabled apps.

Fixes https://linear.app/comm/issue/ENG-1617/handle-logout-in-enabled-apps-reducer
Depends on D4847

Test Plan

native: set calendar as enabled, log out, log in and check if calendar is disabled.
web: tested as a part of D4812

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

tomek requested review of this revision.Aug 16 2022, 5:19 AM

Choose default apps based on platform

tomek requested review of this revision.Aug 16 2022, 5:27 AM

Looks good

lib/reducers/enabled-apps-reducer.js
35

Guessing you logged process.env on both web and native to ensure things were as expected.

This revision is now accepted and ready to land.Aug 16 2022, 2:01 PM
abosh retitled this revision from [lib] Clear enabled aps on logout to [lib] Clear enabled apps on logout.Aug 16 2022, 2:06 PM
lib/reducers/enabled-apps-reducer.js
35

Yes, it is equal to true on web and undefined on native. This value is defined in webpack/shared.cjs and set in createProdBrowserConfig and createDevBrowserConfig.

This revision was automatically updated to reflect the committed changes.