-
Bug
-
Resolution: Fixed
-
Minor
-
3.6.4, 3.7
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
MOODLE_36_STABLE, MOODLE_37_STABLE
-
MDL-65657-master -
In 3.5 $CFG->messagingminpoll, $CFG->messagingmaxpoll, and, $CFG->messageingtimeoutpoll}} were added to allow overriding of the constants MESSAGE_DEFAULT_MIN_POLL_IN_SECONDS, MESSAGE_DEFAULT_MAX_POLL_IN_SECONDS, and MESSAGE_DEFAULT_TIMEOUT_POLL_IN_SECONDS respectively.
In the new UI it appears that these constants and CFG variables are not used at all. In the old UI they were used in message/index.php like so:
$pollmin = !empty($CFG->messagingminpoll) ? $CFG->messagingminpoll : MESSAGE_DEFAULT_MIN_POLL_IN_SECONDS;
|
$pollmax = !empty($CFG->messagingmaxpoll) ? $CFG->messagingmaxpoll : MESSAGE_DEFAULT_MAX_POLL_IN_SECONDS;
|
$polltimeout = !empty($CFG->messagingtimeoutpoll) ? $CFG->messagingtimeoutpoll : MESSAGE_DEFAULT_TIMEOUT_POLL_IN_SECONDS;
|
In the new UI the constants that control polling rates appear to be hardcoded in message/amd/src/message_drawer_view_conversation_constants.js - and seem to be different to the defaults from 3.5