From f8b402e50517ee425bc60fdb0c333ffe0bbf5f84 Mon Sep 17 00:00:00 2001 From: Diego Mello Date: Wed, 17 Oct 2018 09:31:24 -0300 Subject: [PATCH] Regression: Wait for unmount to delete database after logout (#489) --- app/lib/rocketchat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/lib/rocketchat.js b/app/lib/rocketchat.js index b5d1d569..2732966a 100644 --- a/app/lib/rocketchat.js +++ b/app/lib/rocketchat.js @@ -496,7 +496,7 @@ const RocketChat = { AsyncStorage.removeItem(`${ TOKEN_KEY }-${ server }`); setTimeout(() => { database.deleteAll(); - }, 300); + }, 1000); }, disconnect() { try {