MDL-65657 message: revert polling timeout back to old algorithm

This commit is contained in:
Ryan Wyllie
2019-05-27 11:59:02 +08:00
parent 89722fc4d9
commit 4c74b7d17b
8 changed files with 45 additions and 14 deletions
+6
View File
@@ -855,6 +855,12 @@ function core_message_standard_after_main_region_html() {
'id' => $USER->id,
'midnight' => usergetmidnight(time())
],
// The starting timeout value for message polling.
'messagepollmin' => $CFG->messagingminpoll ?? MESSAGE_DEFAULT_MIN_POLL_IN_SECONDS,
// The maximum value that message polling timeout can reach.
'messagepollmax' => $CFG->messagingmaxpoll ?? MESSAGE_DEFAULT_MAX_POLL_IN_SECONDS,
// The timeout to reset back to after the max polling time has been reached.
'messagepollaftermax' => $CFG->messagingtimeoutpoll ?? MESSAGE_DEFAULT_TIMEOUT_POLL_IN_SECONDS,
'contacts' => [
'sectioncontacts' => [
'placeholders' => array_fill(0, $contactscount > 50 ? 50 : $contactscount, true)