Don't preload Compose window for speedup and to avoid an excessive DOM size

This commit is contained in:
djmaze 2021-08-13 10:16:55 +02:00
parent 2a6a1ff799
commit ed1dc4dbc1

View file

@ -15,12 +15,8 @@ import { FolderListMailBoxUserView } from 'View/User/MailBox/FolderList';
import { MessageListMailBoxUserView } from 'View/User/MailBox/MessageList';
import { MessageViewMailBoxUserView } from 'View/User/MailBox/MessageView';
import { getScreenPopupViewModel } from 'Knoin/Knoin';
import { AbstractScreen } from 'Knoin/AbstractScreen';
import { ComposePopupView } from 'View/Popup/Compose';
export class MailBoxUserScreen extends AbstractScreen {
constructor() {
super('mailbox', [
@ -88,7 +84,6 @@ export class MailBoxUserScreen extends AbstractScreen {
onStart() {
if (!this.__started) {
super.onStart();
setTimeout(() => getScreenPopupViewModel(ComposePopupView), 500);
addEventListener('mailbox.inbox-unread-count', e => {
FolderUserStore.foldersInboxUnreadCount(e.detail);