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
This commit is contained in:
Naresh 2024-02-20 23:34:18 +05:30
parent 3eaf765655
commit d2a13626b6
3 changed files with 3 additions and 1 deletions

View File

@ -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()

View File

@ -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;

View File

@ -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";