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:
@@ -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;
|
||||
}
|
||||
};
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user