Store use selected plugin after reconnect

Summary:
Deselect plugin when app disconnects, but store the information that the users had the app selected. When the app conencts again, restore the user's selection.
This also stores the device seleced by the user and reselects the device if it connects.

Reviewed By: xiphirx

Differential Revision: D8833948

fbshipit-source-id: ad3ef54681550ae674bdd4e695d677aea5c14588
This commit is contained in:
Daniel Büchele
2018-07-31 07:37:18 -07:00
committed by Pascal Hartig
parent a8138984f9
commit 1f977f4844
8 changed files with 109 additions and 75 deletions

View File

@@ -9,6 +9,7 @@ import Server from '../server.js';
import type {Store} from '../reducers/index.js';
import type Logger from '../fb-stubs/Logger.js';
import type Client from '../Client.js';
export default (store: Store, logger: Logger) => {
const server = new Server(logger);