djmaze 2021-05-31 10:52:26 +02:00
parent 31e47fa4bb
commit 494626bfc7
2 changed files with 5 additions and 1 deletions

View file

@ -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()*/;
} }
/** /**

View file

@ -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);