mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 05:29:20 +03:00
Cleanup __APP__/getApp code
This commit is contained in:
parent
29cf711a6a
commit
b904eca98e
34 changed files with 86 additions and 146 deletions
|
|
@ -39,8 +39,6 @@ import PgpStore from 'Stores/User/Pgp';
|
|||
import SettingsStore from 'Stores/User/Settings';
|
||||
import NotificationStore from 'Stores/User/Notification';
|
||||
|
||||
import { getApp } from 'Helper/Apps/User';
|
||||
|
||||
import Remote from 'Remote/User/Fetch';
|
||||
|
||||
const
|
||||
|
|
@ -578,7 +576,7 @@ class MessageUserStore {
|
|||
|
||||
initMessageFlagsFromCache(message);
|
||||
if (message.unseen() || message.hasUnseenSubMessage()) {
|
||||
getApp().messageListAction(message.folderFullNameRaw, MessageSetAction.SetSeen, [message]);
|
||||
rl.app.messageListAction(message.folderFullNameRaw, MessageSetAction.SetSeen, [message]);
|
||||
}
|
||||
|
||||
if (isNew) {
|
||||
|
|
@ -754,7 +752,7 @@ class MessageUserStore {
|
|||
clearNewMessageCache();
|
||||
|
||||
if (folder && (cached || unreadCountChange || SettingsStore.useThreads())) {
|
||||
getApp().folderInformation(folder.fullNameRaw, list);
|
||||
rl.app.folderInformation(folder.fullNameRaw, list);
|
||||
}
|
||||
} else {
|
||||
this.messageListCount(0);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue