mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-09-20 07:35:55 +08:00
Merge pull request #1698 from Murena-SAS/dev/fix-set-capabilities
Fix capabilities when THREAD is disabled
This commit is contained in:
commit
ec8da2b72b
|
@ -307,7 +307,7 @@ class ImapClient extends \MailSo\Net\NetClient
|
||||||
// Set active capabilities
|
// Set active capabilities
|
||||||
$aList = \array_diff($aList, $this->Settings->disabled_capabilities);
|
$aList = \array_diff($aList, $this->Settings->disabled_capabilities);
|
||||||
if (\in_array('THREAD', $this->Settings->disabled_capabilities)) {
|
if (\in_array('THREAD', $this->Settings->disabled_capabilities)) {
|
||||||
$aList = \array_filter($aList, function ($item) { \str_starts_with($item, 'THREAD='); });
|
$aList = \array_filter($aList, function ($item) { return !\str_starts_with($item, 'THREAD='); });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->aCapa = $aList;
|
$this->aCapa = $aList;
|
||||||
|
|
Loading…
Reference in a new issue