mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-13 03:27:39 +03:00
This commit is contained in:
parent
31e47fa4bb
commit
494626bfc7
2 changed files with 5 additions and 1 deletions
|
|
@ -169,7 +169,8 @@ class Folder implements \JsonSerializable
|
||||||
|
|
||||||
public function IsSelectable() : bool
|
public function IsSelectable() : bool
|
||||||
{
|
{
|
||||||
return $this->bExists && $this->oImapFolder->IsSelectable();
|
// https://github.com/the-djmaze/snappymail/issues/94#issuecomment-850806845
|
||||||
|
return $this->bExists /* && $this->oImapFolder->IsSelectable()*/;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,8 @@ trait Folders
|
||||||
{
|
{
|
||||||
$this->Plugins()->RunHook('filter.folders-post', array($oAccount, $oFolderCollection));
|
$this->Plugins()->RunHook('filter.folders-post', array($oAccount, $oFolderCollection));
|
||||||
|
|
||||||
|
/*
|
||||||
|
// https://github.com/the-djmaze/snappymail/issues/94#issuecomment-850806845
|
||||||
$aFolders = $oFolderCollection->getArrayCopy();
|
$aFolders = $oFolderCollection->getArrayCopy();
|
||||||
foreach ($aFolders as $i => $oFolder) {
|
foreach ($aFolders as $i => $oFolder) {
|
||||||
if (!$oFolder->IsSelectable()) {
|
if (!$oFolder->IsSelectable()) {
|
||||||
|
|
@ -37,6 +39,7 @@ trait Folders
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$oFolderCollection->exchangeArray(\array_values($aFolders));
|
$oFolderCollection->exchangeArray(\array_values($aFolders));
|
||||||
|
*/
|
||||||
|
|
||||||
$oSettingsLocal = $this->SettingsProvider(true)->Load($oAccount);
|
$oSettingsLocal = $this->SettingsProvider(true)->Load($oAccount);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue