Improve logged out handler of extension, create new local db path

This commit is contained in:
Jackson Harper
2024-01-04 12:20:57 +08:00
parent ab004caad7
commit 486ec19937
7 changed files with 54 additions and 7 deletions

View File

@ -16,6 +16,16 @@ import Views
super.viewDidLoad()
view.backgroundColor = .clear
if !viewModel.services.authenticator.isLoggedIn,
!viewModel.services.dataService.appEnvironment.environmentConfigured
{
embed(
childViewController: UIViewController.makeLoggedOutShareExtensionController(extensionContext: extensionContext),
heightRatio: 0.60
)
return
}
NotificationCenter.default.addObserver(
forName: Notification.Name("ShowAddNoteSheet"),
object: nil,