Skip to content

Commit

Permalink
Merge pull request #1698 from Murena-SAS/dev/fix-set-capabilities
Browse files Browse the repository at this point in the history
Fix capabilities when THREAD is disabled
  • Loading branch information
the-djmaze authored Aug 11, 2024
2 parents a969179 + b8f7f75 commit ec8da2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ private function setCapabilities(ResponseCollection $oResponseCollection) : void
// Set active capabilities
$aList = \array_diff($aList, $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;
Expand Down

0 comments on commit ec8da2b

Please sign in to comment.