Added: allow setting the supported THREAD algorithm

This commit is contained in:
the-djmaze 2024-03-26 15:01:38 +01:00
parent 015dcbdc41
commit 57fbdf8795
48 changed files with 341 additions and 264 deletions

View file

@ -36,8 +36,13 @@ trait Messages
$oParams->iPrevUidNext = $aValues['uidNext'];
}
$oParams->bUseThreads = !empty($aValues['useThreads']);
if ($oParams->bUseThreads && isset($aValues['threadUid'])) {
$oParams->iThreadUid = $aValues['threadUid'];
if ($oParams->bUseThreads) {
if (isset($aValues['threadUid'])) {
$oParams->iThreadUid = $aValues['threadUid'];
}
if (isset($aValues['threadAlgorithm'])) {
$oParams->sThreadAlgorithm = $aValues['threadAlgorithm'];
}
}
} else {
// POST
@ -50,6 +55,7 @@ trait Messages
$oParams->bUseThreads = !empty($this->GetActionParam('useThreads', '0'));
if ($oParams->bUseThreads) {
$oParams->iThreadUid = $this->GetActionParam('threadUid', '');
$oParams->sThreadAlgorithm = $this->GetActionParam('threadAlgorithm', '');
}
}