mirror of
https://github.com/nextcloud/ocsms.git
synced 2026-08-11 16:32:55 +00:00
Add settings to change contact list ordering by label/lastmsg and reverse/sort
This commit is contained in:
@@ -95,6 +95,22 @@ class ConfigMapper extends Mapper {
|
||||
}
|
||||
return $st;
|
||||
}
|
||||
|
||||
public function getContactOrder() {
|
||||
$order = $this->getKey("contact_order");
|
||||
if ($order === false) {
|
||||
$order = "lastmsg";
|
||||
}
|
||||
return $order;
|
||||
}
|
||||
|
||||
public function getContactOrderReverse() {
|
||||
$rev = $this->getKey("contact_order_reverse");
|
||||
if ($rev === false) {
|
||||
$rev = "true";
|
||||
}
|
||||
return $rev;
|
||||
}
|
||||
};
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user