@social-mail/social-mail-client 1.9.19 → 1.9.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/admin/AdminAppIndex.pack.js +1 -1
- package/dist/admin/AdminAppIndex.pack.js.map +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js +1 -1
- package/dist/admin/AdminAppIndex.pack.min.js.map +1 -1
- package/dist/common/menu/MenuService.d.ts +1 -0
- package/dist/common/menu/MenuService.d.ts.map +1 -1
- package/dist/common/menu/MenuService.js +1 -1
- package/dist/common/menu/MenuService.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.js.map +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js +1 -1
- package/dist/site-editor-app/SiteEditorApp.pack.min.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/web/AppIndex.d.ts.map +1 -1
- package/dist/web/AppIndex.js +15 -4
- package/dist/web/AppIndex.js.map +1 -1
- package/dist/web/AppIndex.pack.js +16 -5
- package/dist/web/AppIndex.pack.js.map +1 -1
- package/dist/web/AppIndex.pack.min.js +1 -1
- package/dist/web/AppIndex.pack.min.js.map +1 -1
- package/package.json +1 -1
- package/src/common/menu/MenuService.tsx +3 -3
- package/src/web/AppIndex.tsx +14 -4
package/package.json
CHANGED
|
@@ -11,7 +11,6 @@ import CloudFileService from "../pages/files/service/CloudFileService";
|
|
|
11
11
|
import IClrEntity from "@web-atoms/entity/dist/models/IClrEntity";
|
|
12
12
|
import { IModel } from "@web-atoms/entity/dist/services/BaseEntityService";
|
|
13
13
|
import { CancelToken } from "@web-atoms/core/dist/core/types";
|
|
14
|
-
import sleep from "@web-atoms/core/dist/core/sleep";
|
|
15
14
|
|
|
16
15
|
|
|
17
16
|
export const canMenuBeClosed = Symbol("canBeClosed");
|
|
@@ -52,13 +51,14 @@ export default class MenuService {
|
|
|
52
51
|
@Inject
|
|
53
52
|
cloudFileService: CloudFileService;
|
|
54
53
|
|
|
54
|
+
public firstSearch: Promise<any>;
|
|
55
|
+
|
|
55
56
|
private lastSearch = void 0;
|
|
56
57
|
|
|
57
58
|
private isFirstSearch = true;
|
|
58
59
|
|
|
59
60
|
constructor() {
|
|
60
|
-
setTimeout(() =>
|
|
61
|
-
this.load().catch(console.error), 1);
|
|
61
|
+
setTimeout(() => this.firstSearch = this.load().catch(console.error), 1);
|
|
62
62
|
}
|
|
63
63
|
|
|
64
64
|
async load(search = void 0, cancelToken = void 0 as CancelToken) {
|
package/src/web/AppIndex.tsx
CHANGED
|
@@ -22,6 +22,7 @@ import { AppLocation } from "../common/TestMode";
|
|
|
22
22
|
import BusyProgress from "../services/BusyProgress";
|
|
23
23
|
import SplashScreenPage from "../common/pages/splash/SplashScreenPage";
|
|
24
24
|
import MenuService from "../common/menu/MenuService";
|
|
25
|
+
import PositronInBrowser from "@positron-js/context/dist/PositronInBrowser";
|
|
25
26
|
|
|
26
27
|
(Symbol as any).asyncDispose ??= Symbol("asyncDispose");
|
|
27
28
|
(Symbol as any).dispose ??= Symbol("dispose");
|
|
@@ -59,16 +60,25 @@ export default class AppIndex extends MobileDesktopApp {
|
|
|
59
60
|
|
|
60
61
|
this.drawerMenu = AppDrawer;
|
|
61
62
|
|
|
62
|
-
this.resolve(MenuService);
|
|
63
|
-
|
|
64
63
|
while (!currentUser.multiFactor) {
|
|
65
64
|
await PageNavigator.pushPageForResultOrCancel(SetupMultiFactorPage);
|
|
66
65
|
}
|
|
67
66
|
|
|
67
|
+
const menuService = this.resolve(MenuService);
|
|
68
|
+
|
|
68
69
|
if(!Command.invokeRoute()) {
|
|
69
70
|
|
|
70
|
-
// check if we are
|
|
71
|
-
|
|
71
|
+
// check if we are inside a mobile app
|
|
72
|
+
// load first mailbox directly...
|
|
73
|
+
if(PositronInBrowser.isAvailable) {
|
|
74
|
+
await sleep(10);
|
|
75
|
+
await menuService.firstSearch;
|
|
76
|
+
const id = menuService.mailboxes[0].mailboxID;
|
|
77
|
+
AppCommands.openMailbox.dispatch({ id });
|
|
78
|
+
} else {
|
|
79
|
+
// check if we are configured...
|
|
80
|
+
AppCommands.openHome.dispatch();
|
|
81
|
+
}
|
|
72
82
|
}
|
|
73
83
|
|
|
74
84
|
if (this.desktopApp) {
|