1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-11 16:32:55 +00:00

Message limit & other improvements

* Implement message limit permitting to limit number of message shown when loading a conversation
* Reformat message date properly using angular JS instead of our own date parser
* replace /get/country call with /get/settings to retrieve all settings

This fixes issue #90
This commit is contained in:
Loic Blot
2016-01-30 22:47:08 +01:00
parent a4ae53b19f
commit 7fed10a26c
6 changed files with 60 additions and 43 deletions
+8
View File
@@ -74,6 +74,14 @@ class ConfigMapper extends Mapper {
* Helpers for different config options
*/
public function getCountry () { return $this->getKey("country"); }
public function getMessageLimit () {
$limit = $this->getKey("message_limit");
// Default limit is 500 messages
if ($limit === false) {
$limit = 500;
}
return $limit;
}
};
?>