Add notes for #44
This commit is contained in:
parent
02dcf17858
commit
c64e2328e0
1 changed files with 3 additions and 0 deletions
|
@ -697,6 +697,8 @@ class Diversion(object):
|
|||
Participant doesn't speak for x consecutive replies (has had timeout)
|
||||
"""
|
||||
':type story: Story'
|
||||
# TODO: disable check on msgFrom/msgTo to allow for own timing (2 sec)
|
||||
# use story.currentReply.getTimeSinceLastUtterance() > 2
|
||||
if story.currentDiversion or not msgFrom or not msgTo:
|
||||
# don't do nested diversions
|
||||
# if we remove this, don't forget to double check 'returnMessage'
|
||||
|
@ -726,6 +728,7 @@ class Diversion(object):
|
|||
story.logger.critical(f"Not a valid message id for diversion: {self.params['msgId']}")
|
||||
return
|
||||
|
||||
# TODO: pick the direction with timeout as next Message.
|
||||
self.returnMessage = msgTo
|
||||
|
||||
if self.params['returnAfterStrand']:
|
||||
|
|
Loading…
Reference in a new issue