From f86b274bc82be65c48f5cddce75bdf394b1447f1 Mon Sep 17 00:00:00 2001 From: Djorkaeff Alexandre Date: Fri, 25 Sep 2020 09:27:34 -0300 Subject: [PATCH] [FIX] Logout when install fresh Official and Experimental iOS app (#2493) --- ios/RocketChatRN/AppDelegate.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios/RocketChatRN/AppDelegate.m b/ios/RocketChatRN/AppDelegate.m index b822878b..a7e8be77 100644 --- a/ios/RocketChatRN/AppDelegate.m +++ b/ios/RocketChatRN/AppDelegate.m @@ -71,7 +71,7 @@ static void InitializeFlipper(UIApplication *application) { [MMKV initializeMMKV:nil groupDir:groupDir logLevel:MMKVLogNone]; // Start the MMKV container - MMKV *defaultMMKV = [MMKV defaultMMKV]; + MMKV *defaultMMKV = [MMKV mmkvWithID:@"migration" mode:MMKVMultiProcess]; BOOL alreadyMigrated = [defaultMMKV getBoolForKey:@"alreadyMigrated"]; if (!alreadyMigrated) {