Merge pull request #7901 from annando/disable-smart-threading

Changed the option to enable the smart threading with the option to disable this
This commit is contained in:
Hypolite Petovan 2019-12-04 15:25:53 -05:00 committed by GitHub
commit 4403aeeda5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 17 additions and 17 deletions

View file

@ -1479,7 +1479,7 @@ function conv_sort(array $item_list, $order)
$parents[$i]['children'] = sort_item_children($parents[$i]['children']);
}
if (PConfig::get(local_user(), 'system', 'smart_threading', 0)) {
if (!PConfig::get(local_user(), 'system', 'no_smart_threading', 0)) {
foreach ($parents as $i => $parent) {
$parents[$i] = smart_flatten_conversation($parent);
}