From d2a13626b6b657ca6833abe9c7ab89242deb7bf1 Mon Sep 17 00:00:00 2001 From: Naresh Date: Tue, 20 Feb 2024 23:34:18 +0530 Subject: [PATCH] As Per Scott Comment Updated Key to hide chat icon as per legacy As Per Scott Comment Updated Key to hide chat icon as per legacy --- MVMCoreUI/BaseControllers/ViewController.swift | 2 +- MVMCoreUI/Utility/MVMCoreUIConstants.h | 1 + MVMCoreUI/Utility/MVMCoreUIConstants.m | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/MVMCoreUI/BaseControllers/ViewController.swift b/MVMCoreUI/BaseControllers/ViewController.swift index d3d7c3c0..8eb0737a 100644 --- a/MVMCoreUI/BaseControllers/ViewController.swift +++ b/MVMCoreUI/BaseControllers/ViewController.swift @@ -532,7 +532,7 @@ import MVMCore public func isRightPanelAccessible() -> Bool { // TODO: Remove when FAB is 100%. - if loadObject?.pageJSON?.boolForKey(KeyHideMainMenu) ?? false { + if loadObject?.pageJSON?.boolForKey(KeyHideChatSupport) ?? false { return false } return (MVMCoreUISession.sharedGlobal()?.launchAppLoadedSuccessfully ?? false) || showRightPanelForScreenBeforeLaunchApp() diff --git a/MVMCoreUI/Utility/MVMCoreUIConstants.h b/MVMCoreUI/Utility/MVMCoreUIConstants.h index ab77986b..f7c3ba0a 100644 --- a/MVMCoreUI/Utility/MVMCoreUIConstants.h +++ b/MVMCoreUI/Utility/MVMCoreUIConstants.h @@ -26,6 +26,7 @@ extern NSString * const KeyEnabled; extern NSString * const KeyFieldName; extern NSString * const KeyHideMainMenu; +extern NSString * const KeyHideChatSupport; extern NSString * const KeyProgressPercent; extern NSString * const KeyPrimaryButton; diff --git a/MVMCoreUI/Utility/MVMCoreUIConstants.m b/MVMCoreUI/Utility/MVMCoreUIConstants.m index 2483826f..87a979c0 100644 --- a/MVMCoreUI/Utility/MVMCoreUIConstants.m +++ b/MVMCoreUI/Utility/MVMCoreUIConstants.m @@ -27,6 +27,7 @@ NSString * const KeyFieldKey = @"fieldKey"; NSString * const KeyRequired = @"required"; NSString * const KeyHideMainMenu = @"hideMainMenu"; +NSString * const KeyHideChatSupport = @"hideChatSupport"; NSString * const KeyProgressPercent = @"progressPercent"; NSString * const KeyPrimaryButton = @"PrimaryButton";