mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-30 20:49:20 +03:00
change AbstractFetchRemote with a better structure
This commit is contained in:
parent
0d809dd574
commit
792fee547a
26 changed files with 265 additions and 723 deletions
|
|
@ -27,10 +27,10 @@ ContactUserStore.sync = fResultFunc => {
|
|||
&& !ContactUserStore.syncing()
|
||||
) {
|
||||
ContactUserStore.syncing(true);
|
||||
Remote.contactsSync((iError, oData) => {
|
||||
Remote.request('ContactsSync', (iError, oData) => {
|
||||
ContactUserStore.syncing(false);
|
||||
fResultFunc && fResultFunc(iError, oData);
|
||||
});
|
||||
}, null, 200000);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -167,6 +167,6 @@ export const FolderUserStore = new class {
|
|||
Archive: FolderUserStore.archiveFolder()
|
||||
};
|
||||
forEachObjectEntry(folders, (k,v)=>Settings.set(k+'Folder',v));
|
||||
rl.app.Remote.saveSystemFolders(null, folders);
|
||||
rl.app.Remote.request('SystemFoldersUpdate', null, folders);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue