mirror of
https://github.com/zulip/zulip.git
synced 2025-11-11 09:27:43 +00:00
End the tutorial if they don't send us a response.
But lengthen the length of time you're willing to wait for one, as a consequence. (imported from commit bbdcf29a8b9d479a08259e5ccabd464e09c18b58)
This commit is contained in:
@@ -58,9 +58,8 @@ function wait_for_message(time_to_wait_sec, condition) {
|
|||||||
numCalls += 1;
|
numCalls += 1;
|
||||||
if (numCalls > time_to_wait_sec * 1000 / POLL_INTERVAL_MS) {
|
if (numCalls > time_to_wait_sec * 1000 / POLL_INTERVAL_MS) {
|
||||||
clearInterval(intervalId);
|
clearInterval(intervalId);
|
||||||
// Normally we would defer.fail here, but we want the tutorial to continue
|
// We didn't get an answer; end the tutorial.
|
||||||
// regardless, so we'll resolve it.
|
deferred.fail();
|
||||||
deferred.resolve();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (received_messages.length > 0) {
|
if (received_messages.length > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user