1
0
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:
Loic Blot
2016-09-19 23:24:05 +02:00
parent 7b92499941
commit 60bd54a12a
5 changed files with 97 additions and 17 deletions
+16
View File
@@ -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;
}
};
?>