mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-11-03 10:58:50 +03:00
Add debug message
This commit is contained in:
parent
1246a455f3
commit
eeec1b8b49
1 changed files with 20 additions and 16 deletions
|
|
@ -24,23 +24,27 @@ class RemoteUserFetch extends AbstractFetchRemote {
|
|||
sFolderFullName = pString(sFolderFullName);
|
||||
iUid = pInt(iUid);
|
||||
|
||||
if (getFolderFromCacheList(sFolderFullName) && 0 < iUid) {
|
||||
this.abort('Message').request('Message',
|
||||
fCallback,
|
||||
{},
|
||||
null,
|
||||
'Message/' +
|
||||
SUB_QUERY_PREFIX +
|
||||
'/' +
|
||||
b64EncodeJSONSafe([
|
||||
sFolderFullName,
|
||||
iUid,
|
||||
AppUserStore.threadsAllowed() && SettingsUserStore.useThreads() ? 1 : 0,
|
||||
SettingsGet('accountHash')
|
||||
])
|
||||
);
|
||||
if (0 < iUid) {
|
||||
if (getFolderFromCacheList(sFolderFullName)) {
|
||||
this.abort('Message').request('Message',
|
||||
fCallback,
|
||||
{},
|
||||
null,
|
||||
'Message/' +
|
||||
SUB_QUERY_PREFIX +
|
||||
'/' +
|
||||
b64EncodeJSONSafe([
|
||||
sFolderFullName,
|
||||
iUid,
|
||||
AppUserStore.threadsAllowed() && SettingsUserStore.useThreads() ? 1 : 0,
|
||||
SettingsGet('accountHash')
|
||||
])
|
||||
);
|
||||
|
||||
return true;
|
||||
return true;
|
||||
} else {
|
||||
console.warn(`Remote.message: no such folder ${JSON.stringify(sFolderFullName)}, not fetching uid ${iUid}`);
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue